S
Stephen Brown
I have a simple regex need and I've already wasted too much time on it
spinning in circles. Can a regex god help a stranded soul? I just need to
replace all non-escaped ampersands in a file. It needs to skip escaped
ampersands such as & and
&[a-zA-Z0-9]+; will get the escaped ampersands (some inproper escapes will
slip buy, but good enough for my purposes), but I need to replace all the
ampersands that aren't escaped
example:
&abc;&def& ghi&_jkl
after replace:
&abc;*def* ghi*_jkl
spinning in circles. Can a regex god help a stranded soul? I just need to
replace all non-escaped ampersands in a file. It needs to skip escaped
ampersands such as & and
&[a-zA-Z0-9]+; will get the escaped ampersands (some inproper escapes will
slip buy, but good enough for my purposes), but I need to replace all the
ampersands that aren't escaped
example:
&abc;&def& ghi&_jkl
after replace:
&abc;*def* ghi*_jkl