2018 | OriginalPaper | Chapter
8. Lookahead and Lookbehind
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
Abstract
^
, $
, and the \b
boundary character are zero-length assertions that filter matches based on special conditions. These conditions restrict the position of the first or last character of the match. We will now do something similar, but this time, we will restrict the position of some characters in the expression with respect to other characters in the string. Lookahead and Lookbehind are two zero-length assertions that accomplish this.