RE: [PHP] regexp for ' replacement

From: Date: Fri, 05 Apr 2002 17:35:23 +0000
Subject: RE: [PHP] regexp for ' replacement
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91757@lists.php.net to get a copy of this message
Nop. I don't want to affect the first and last ' of every line. On Fri, 5 Apr 2002, Rick Emery wrote: > addslashes($textline) > > -----Original Message----- > From: Thalis A. Kalfigopoulos [mailto:thalis@cs.pitt.edu] > Sent: Friday, April 05, 2002 10:54 AM > To: php-general@lists.php.net > Subject: [PHP] regexp for ' replacement > > > Yet another regexpr question. > If I have as part of a text: > ...and then 'the quick brown fox jumped over the lazy dog's piano'... > > How can I substitute the single quote in "dog's" with say \' > I want to aply a substitution for only the single quote that is between two > single quotes and leave the rest of the text in between the same. > > Make sense for regexpr usage? > > TIA, > thalis > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#91757) next »