Tapatalk

How to search for a string which is not preceded by another string?

How to search for a string which is not preceded by another string?

8

PostDec 12, 2022#1

I wish to search, using regular expressions, for a string (say •water) where this is not preceded by "<W ", that is "<W" followed by a space.

E.g. "<W •water" or "<W •Content" must not match. I only need the occurrences where the "<W " does not precede the string. The • will always precede the word.

How can I achieve this? I am using UltraEdit version 18.10.0.1018.

6,824625
Grand MasterGrand Master
6,824625

PostDec 12, 2022#2

A Perl regular expression search with (?<!<W )•water searches for •water and uses a negative lookbehind to verify if there is not "<W " preceding found •water for a positive match.

8

PostDec 12, 2022#3

Thank you very much!