1(?=foo) Lookahead Asserts that what immediately follows the current position in the string is foo
2(?<=foo) Lookbehind Asserts that what immediately precedes the current position in the string is foo
3(?!foo) Negative Lookahead Asserts that what immediately follows the current position in the string is not foo
4(?<!foo) Negative Lookbehind Asserts that what immediately precedes the current position in the string is not foo
5