
February 1st, 2013, 04:39 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
Well... no, on second thought you can. The problem is the possibility of there being more than one "car" on a line, but that's not necessarily a problem.
Assuming PCRE,
(\b is a word boundary, otherwise it would match "cartel" too)
I just don't like doing replacements this way. It's valid, but it feels weird to me so I rarely ever consider it.
|