Tutorial
Tools & Languages
Examples
Reference
Matching a Complete Line Containing Several Words
^
(?=
.
*?
\b
one
\b
)
(?=
.
*?
\b
two
\b
)
(?=
.
*?
\b
three
\b
)
.
*
$
Options: ^ and $ match at line breaks
Assert position at the start of the string or after a line break character
Assert that the regex below can be matched, starting at this position (positive lookahead)
Match any single character that is not a line break character
Between zero and unlimited times, as few times as possible, expanding as needed (lazy)
Assert position at a word boundary
Match the characters "one" literally
Assert position at a word boundary
Assert that the regex below can be matched, starting at this position (positive lookahead)
Match any single character that is not a line break character
Between zero and unlimited times, as few times as possible, expanding as needed (lazy)
Assert position at a word boundary
Match the characters "two" literally
Assert position at a word boundary
Assert that the regex below can be matched, starting at this position (positive lookahead)
Match any single character that is not a line break character
Between zero and unlimited times, as few times as possible, expanding as needed (lazy)
Assert position at a word boundary
Match the characters "three" literally
Assert position at a word boundary
Match any single character that is not a line break character
Between zero and unlimited times, as many times as possible, giving back as needed (greedy)
Assert position at the end of the string or before a line break character
Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print