Email-like text
Input
{"pattern":"[\\w.-]+@[\\w.-]+\\.\\w+","flags":"gi","text":"Contact [email protected] or [email protected]"}Output
[email protected], [email protected]
Try a JavaScript regular expression against sample text and inspect matches, indexes, capture groups, and replacement output.
Developer tools
Input
{"pattern":"[\\w.-]+@[\\w.-]+\\.\\w+","flags":"gi","text":"Contact [email protected] or [email protected]"}Output
[email protected], [email protected]
Input
{"pattern":"(?<key>\\w+)=(\\d+)","flags":"g","text":"id=42 count=7","replacement":"$1: $2"}Output
id=42, count=7
Nearby utilities from the KoguNavi toolbox.