Lesezeichen

Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions


Beschreibung

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

Vorschau

Tags

Nutzer

  • @jil

Kommentare und Rezensionen