Tutorial  Tools & Languages  Examples  Reference 

Two Words Near Each Other in a Specific Order

\bword1\W+(?:\w+\W+){1,6}word2\b

Regular expression analyzed with RegexBuddy.
HTML output from RegexBuddy adapted with a PowerGREP search-and-replace sequence.

Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print