パターンをトークンごとに説明し、フラグを切り替え、サンプル テキストとの一致を強調表示します。
/([\w.-]+)@([\w.-]+\.[A-Za-z]{2,})/gmi
Reach us at hello@dools.dev or support@example.org today!