Regex: positive lookahead
19 June 2022 (Updated 30 October 2022)
Match a q
that is immediately followed by a u
, without making the u
part of the match.
q(?=u)
Match a q
that is followed by a u
(doesn’t have to be immediately after), without making the u
part of the match.
q.*(?=u)
Tagged:
Regex
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment