Target:
- Replace „test“ (always without quotation marks) by „<span class=”class1”>test</span>“, whereas “test” in the target should be a back reference to the found “test” and all this should be case in-sensitive
- Test has to stand out as a sole word – at the beginning of the text, a line or after a whitespace / same goes for the end
- If “test” is not between “[“ and “:0a1b2c3d]”, whereas “0a1b2c3d” can be any 8 digit/letter combination including capital characters
AND - If “test” is not within “[url=http://www.test.com:0a1b2c3d]text[/url:0a1b2c3d]”, whereas for “0a1b2c3d” applies the same as above and “http://www.test.com” can be everything (combination of letter/numbers/special characters – the regex does not need to check for validity of the URL)
Thanks in advance!
The parts I figured out so far:
- “/i” at the end of the search term will take care of the case in-sensivity
- Back-reference is done by using “(test)” in the search expression and “\1” in the target
- Word boundary is referenced to by “\b” in the search term
Cheers
th23