bookmark

Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions


Description

you cannot use a negated character class to match a q not followed by a u. Negative lookahead provides the solution: q(?!u).

Positive lookahead works just the same. q(?=u) matches a q that is followed by a u

Preview

Tags

Users

  • @jil

Comments and Reviews