Re: [PHP-WIN] Regular expressions

2004-01-15 Thread Meteorlet
OR. > >-- >Gerardo S. Rojas >mailto: [EMAIL PROTECTED] > > >-Original Message- >From: Ignatius Reilly [mailto:[EMAIL PROTECTED] >Sent: Thursday, January 15, 2004 11:36 AM >To: Gerardo Rojas; [EMAIL PROTECTED] >Subject: Re: [PHP-WIN] Regular expressions >

RE: [PHP-WIN] Regular expressions

2004-01-15 Thread Gerardo Rojas
, January 15, 2004 11:36 AM To: Gerardo Rojas; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Regular expressions What do you want to replace a match with? _ - Original Message - From: "Gerardo Rojas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: [PHP-WIN] Regular expressions

2004-01-15 Thread Ignatius Reilly
What do you want to replace a match with? _ - Original Message - From: "Gerardo Rojas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 18:16 Subject: [PHP-WIN] Regular expressions I have 2 regular expressions tha

[PHP-WIN] Regular expressions

2004-01-15 Thread Gerardo Rojas
I have 2 regular expressions that work correctly. How do i combine them to work as 1 or 2 1: /^\d\{1,2}\. 2: /^\s\d\{1,2}\. i want to replace any matching pattern with either regular expression. It would be nice if i could put this in a single command. Currently i have this mapped

Re: [PHP-WIN] Regular Expressions

2003-12-23 Thread Frank M. Kromann
Hi, The replaced string is returned by the function. This works. $str = "test test2"; $str2 = preg_replace('/ /', ',', $str); If your are doing simple replacements like this you should use str_replace() it's much faster! $str = "test test2"; $str2 = str_replace(' ', ',', $str); - Frank > How d

[PHP-WIN] Regular Expressions

2003-12-23 Thread Gerardo Rojas
How do I use preg_replace to replace a space (" ") with a comma (",")? i am using: preg_replace('/ /', ',', $string). this isn't working. -- Gerardo S. Rojas mailto: [EMAIL PROTECTED]

[PHP-WIN] Regular Expressions

2001-07-25 Thread Nintendoodle
Just wondering if this would be correct, I am tring to use [p][ep] as regular expressions to be replace with an img tag, and i just want to know if it is possible to put in only the file name, and to have the location added through the eregi_replace as I have tried below Thanks eregi_replace(

[PHP-WIN] Regular Expressions

2001-07-25 Thread Siobhan Sweeney
Just wondering if this would be correct, I am tring to use [p][ep] as regular expressions to be replace with an img tag, and i just want to know if it is possible to put in only the file name, and to have the location added through the eregi_replace as I have tried below Thanks eregi_replace(