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, (?<!m)d, before daily:
(?<!m)d
(?<!m)daily
The zero width negative lookbehind, (?<!m), makes sure daily is not preceded by m.
(?<!m)
Demo