I was wondering if something like this is possible with Regex, to replace a value ('John Doe' in my example below) with the first match ('[email protected]' in my example below):
Input:
Contact: <a href="mailto:[email protected]">John Doe</a>
Output:
Contact: [email protected]
Thanks in advance.