RE: [PHP] regex drive me crazy

2003-10-02 Thread Ford, Mike [LSS]
Ooops, forgot the footnote: *** http://www.php.net/manual/en/language.types.string.php#language.types.string .syntax Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Info

RE: [PHP] regex drive me crazy

2003-10-02 Thread Ford, Mike [LSS]
On 01 October 2003 21:02, [EMAIL PROTECTED] wrote: > 1. The PHP manual sais to escape the escape char, it has to > be written > twice*, but: Yes, it does. But it also says that to put a \ into a string, you need to write it twice ("escape" it) ***. So: > $term = preg_replace('/(\\)/', 'backsla

Re: [PHP] regex drive me crazy

2003-10-01 Thread Curt Zirzow
* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]): > Am Mittwoch, 01.10.03 um 22:27 Uhr schrieb Chris W. Parker: > >Seeing as how you haven't had a response yet, I'll ask this: what > >exactly is your question? I'm not sure as to what it is that you want. > > My question are: > a) Why does th

Re: [PHP] regex drive me crazy

2003-10-01 Thread jonas_weber
Am Mittwoch, 01.10.03 um 22:27 Uhr schrieb Chris W. Parker: Seeing as how you haven't had a response yet, I'll ask this: what exactly is your question? I'm not sure as to what it is that you want. My question are: a) Why does the PHP manual say that backslashes get escaped by writing them twice wh

RE: [PHP] regex drive me crazy

2003-10-01 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, October 01, 2003 1:02 PM said: > Does this make ANY sense? Seeing as how you haven't had a response yet, I'll ask this: what exactly is your question? I'm not sure as to what it is that you want. c. -- PHP General Mailing List (ht