Regex: Inserting a quote character into link with grepWin tool

Hello Experts,

I have links I need to update that exist in the html pages as  

<a href=">

Open in new window

the xxxxx is different in every link but is always some letters or numbers. I was able to piece together a Regex search string to find the string which contains the portion I need:*?>)

Open in new window

This will match a result that looks like:>

Open in new window

Perfect. But, I am lost on what to use in my Regex replace string to insert the quote symbol just before the wicket. Thanks in advance for your assistance.
LVL 16
Who is Participating?
Match String:*?)>  (matches everything after the backslash to the ending wicket)

Replace string:$1">

Depending on the regex engine you are using, you may need to use \1 instead of $1
short of digging into it because my brain is far from that mode right now, this is the tool i use for building and evaluating regex strings

easy to use and pretty slick
JF0Author Commented:
I was looking at that earlier, but it didn't help me find the correct answer. After some further research I think I need to use something called backreferences. I am so lost.

I basically want to match everything before the wicket, and replace it with everything before the wicket + a quote character.
JF0Author Commented:
Perfect, thanks!

I couldn't think of how to set the sub dir as the reference - seems so simple now.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.