I\'m having some difficulty with a specific Regex I\'m trying to use. I\'m searching for every occurrence of a string (for my purposes, I\'ll say it\'s \"mystring\") i
When your regex processor doesn't support variable length look behind, try this:
(<.+?>[^<>]*?)(_mystring_)([^<>]*?<.+?>)
Preserve capture groups 1 and 3 and replace capture group 2:
For example, in Eclipse, find:
(<.+?>[^<>]*?)(_mystring_)([^<>]*?<.+?>)
and replace with:
$1_newString_$3
(Other regex processors might use a different capture group syntax, such as \1)