July 2017
Beginner to intermediate
486 pages
13h 49m
English
Negative lookahead matches the string which is definitely not followed by the pattern which we have defined in the regex pattern part.
Let's give an example to understand the negative lookahead:
The syntax of negative lookahead is (?!pattern)
The regex r play(?!ground) matches play, but only if it is not followed by ground. Thus the play just before on is matched.
Read now
Unlock full access