I have the following:
itemid=44'>Red Flower</a>
I need it to be this:
_ITEMID_START_44_ITEMID_END_
Can this be done with regular expressions? I need to keep the id (44 in the example), and replace everything on the left with _ITEMID_START_and everything on the right with _ITEMID_END_.
Note: The itemid is one digit or two but never no more than two.
I found something about tagged regular expressions and backreferences which seems like it would work but the syntax is killing me.
I tried this (and other attempts):
Find What: ^(\bitemid=\b)^([0-9][0-9]^)\b'>\b[a-z]+\b</a>\b)
Replace With: ^(\b_ITEMID_START_\b^2^(\b_ITEMID_END_\b
I am using UltraEdit to do the find and replace in over 20,000 *.html files. Any help would be very much appreciated.