@ccstone: Thanks to your suggestion for RegEx online tool, I think I have found the BEST RegEx pattern to extract URL from HTML Anchor. But I’d still like your assessment of this pattern.
REF: https://regex101.com/r/rQ8mR1/1
SOURCE: <a.+?\s*href\s*=\s*["\']?([^"\'\s>]+)["\']?
QUOTED: "<a.+?\\s*href\\s*=\\s*[\"\\']?([^\"\\'\\s>]+)[\"\\']?"
This works with ALL of my test cases, including the hard one from @peternlewis
<a alt="<>" href="http://www.stairways.com">
I’m going to run this for a while in my local test version of:
Macro: Set Clipboard to RTF Hyperlink & Plain Text MD Link – BETA 1.0
If all goes well, I’ll update the macro/script in the above thread.