Posted on March 1, 2011
Regex lookahead and lookbehind
A common search scenario involves finding all occurrences of a string x, but that are not followed by string y. Here’s a contrived example. Let’s say you were fond of using the variables foo, bar, and foobar. They… Read More