
March 10th, 2012, 04:12 AM
|
 |
Contributing User
|
|
Join Date: Oct 2004
Location: london
|
|
Quote: | Originally Posted by ragax Without disagreeing with requinix, I'd also suggest you consider a small tweak:
brown.*?lazy
The question mark after the star ensures that you only match characters between brown and the first lazy (if you had several), as in:
That brown snake is a lazy snake, if I ever saw a lazy snake.
Without the question mark, the regex matches:
That brown snake is a lazy snake, if I ever saw a lazy snake. |
Many thanks for the advice. I tested those and they work perfectly in the online regex tester, they don't work for WP-o-matic. It matches the whole article
WP-o-matic is a great tool but it doesnt do what it should with regular expressions.
|