Unable to use Replace in files
-
This Regular expression helped me replace in files (multiple files) only what I wanted:
(?:<p(?!\w)[^>]*?color\s*:\s*(?:(black))[^>]*?>(?(1)(?:\s*<span(?!\w)[^>]*?>)?)|<span\b[^>]*?color\s*:\s*black[^>]*?>|<li\b[^>]*?style[^>]*?color\s*:\s*black[^>]*?>\s*<span\b[^>]*?>)(?s)\s*<code\b(?:".*?"|'.*?'|[^>]*?)+>(*SKIP)(*FAIL)|<code\b[^>]*?style[^>]*?background-color\s*:\s*transparent[^>]*?>
as asked right on top in my first question of this thread, that is, it helps find<code style="background-color: transparent;">
if it is not preceded by<p.......color: black...>(any white spaces, including a new line)<span.......>
or<span.......color: black...>
-
Take the time to read my last e-mail to you, where I explained the differences between two simple regexes containing, each, the
(*SKIP)(*F)
syntax !BR
guy038