I have a long HTML document with a list of 10-digit text variables that I'd like to copy and paste into a link earlier in the line, for example:
<a href="example.com/">1234567890</a>
Into:
<a href="example.com/1234567890">1234567890</a>
So, a Grep pattern that finds the 10-digit variable, then copies and pastes it either 2 characters before it, or identifies the incomplete href and pastes it at the end of it.
Any ideas?