📜  正前瞻正则表达式 python 代码示例

📅  最后修改于: 2022-03-11 14:46:34.289000             🧑  作者: Mango

代码示例1
(?=foo)    Lookahead    Asserts that what immediately follows the current position in the string is foo
(?<=foo)    Lookbehind    Asserts that what immediately precedes the current position in the string is foo
(?!foo)    Negative Lookahead    Asserts that what immediately follows the current position in the string is not foo
(?