July 2017
Beginner to intermediate
486 pages
13h 49m
English
Positive lookahead matches the substring from a string if the defined pattern is followed by the substring. If you don't understand, then let's look at the following example:
The syntax of positive lookahead is (?=pattern)
The regex rplay(?=ground) matches play, but only if it is followed by ground. Thus, the first play in the text string won't be matched.
Read now
Unlock full access