I have a textarea with lots of lines that look like:
#1=stuff
#2=more stuff
...
#123=even more stuff
...
I'm using regex to find the #num= pattern (/^#[0-9]*=/) and I want to make them anchor tags like
<a href='#123='>#123=</a>
But it won't work as I thought it would.
"#2=".replace(/^#[0-9]*=/,"<a href='$1'>$1</a>")
The result:
<a href='$1'>$1</a>
What am I doing wrong?
/^(#[0-9]*=)/