How to match car only, and not carbonate ?

brakkar - June 14, 2009 - 18:20
Project:Flexifilter
Version:6.x-1.1-rc2
Component:Code - Misc
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
I want to replace any text "car", but problem is that it will also replace any text containing car, like carbonate.

I use a regex text replace, but what should I put to limit its work to "car" only ?
Thanks,
Brakkar

#1

KiamLaLuno - July 1, 2009 - 04:06

Did you try using a pattern matching like car$?

#2

KiamLaLuno - July 1, 2009 - 04:12

If that doesn't work, the alternative is to use a pattern matching like car[ \.;].

 
 

Drupal is a registered trademark of Dries Buytaert.