Tutorial
Tools & Languages
Examples
Reference
Two Words Near Each Other in a Specific Order
\b
word1
\W
+
(?:
\w
+
\W
+
)
{1,6}
word2
\b
Assert position at a word boundary
Match the characters "word1" literally
Match a single character that is a "non-word character"
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match the regular expression below
Between one and 6 times, as many times as possible, giving back as needed (greedy)
Match a single character that is a "word character" (letters, digits, etc.)
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match a single character that is a "non-word character"
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match the characters "word2" literally
Assert position at a word boundary
Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print