[thelist] Is this regex possible?

Chris at globet.com Chris at globet.com
Wed Sep 14 10:49:11 CDT 2005


F Storr

> I'm trying to do something in a regex, but I'm not actually 
> sure if it's possible.  What I want to do is to change the 
> letters 'CS' to 'customer service' but if those letters come 
> at the beginning of a sentence then the transformation should 
> be 'Customer service'.  I'd be looking to run this in 
> Dreamweaver's find+replace as that's the only thing I have 
> available to me at work that can handle regexes :(

Are the following of any use? They are untested I'm afraid but may give
you an idea.

Replace the following pattern with ". Customer service ".
\.\s+CS\s

Replace the following pattern with " customer service ".
\sCS\s

Replace the following pattern with " customer service.".
\sCS\.

Chris Marsh
Web Developer
http://www.globet.com/
Tel: +44 20 8246 4804 Ext 828
Fax: +44 20 8246 4808

Any opinions expressed in this email are those of the individual and not
necessarily the Company. This message is intended for the use of the
individual or entity to which it is addressed and may contain
information that is confidential and privileged and exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please contact the
sender immediately and delete it from your system. 


More information about the thelist mailing list