regex – Search for a Text Not Preceded by a Pattern with a Variable Number of Spaces
I want to match instances of like to match the Table.Field that are not preceed by the words and or where.
However, there can be a variable number of spaces between these forbidden words and Table.Field.
The following regex represents what I would like to achieve, but it is invalid when using a PCRE engine because of the + quantifier and the alternation (and|where) inside the negative lookbehind:
(?
Table.Field
something Table.Field
bTable.Field
Table.Field
and Table.Field
where Table.Field
and Table.Field
where Table.Field
Thanks
Read more here: Source link
