What could be regex which match anystring followed by daily but it must not match daily preceded by m?
anystring
daily
m
For exampl
Just add a negative lookbehind, (?, before daily:
(?, before daily:
(?
The zero width negative lookbehind, (?, makes sure daily is not preceded by m.
(?, makes sure daily is not preceded by m.
Demo