[PHP] Re: Regular Expressions Help

2002-06-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J. Younker) wrote: > Hi, > I'm trying to use eregi_replace to check a user-submitted URL, but I > keep getting the following error message: > Warning: Invalid range end in /var/www/html/_db_db/db_input.php > This what I'm using: > $pattern = "(h

[PHP] Re: regular expressions help please

2002-04-30 Thread liljim
Hi Ed, first example has been covered by others, so onto the next: > Pulling a word between two other words without having to know what the word > is. For example, pulling whatever word displays between "the" and > "sky". If the string was "the blue sky", the result would be the word > blue.

[PHP] Re: regular expressions help please

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ed Lazor) wrote: > I've been banging my head against regular expressions all night... help > would be greatly appreciated. Could you give me examples on how to do the > following? > > Pull everything except a specific word from a sentence.