Regex Matching - A letter not preceded by another letter

后端 未结 1 1632
春和景丽
春和景丽 2021-01-18 05:10

What could be regex which match anystring followed by daily but it must not match daily preceded by m?

For exampl

1条回答
  •  清酒与你
    2021-01-18 05:47

    Just add a negative lookbehind, (?, before daily:

    (?

    The zero width negative lookbehind, (?, makes sure daily is not preceded by m.

    Demo

    0 讨论(0)
提交回复
热议问题