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. For example, pulling everything except the word run from "the water run was steep". Pull all words from a string starting with a specific letter or pattern. For example, pulling all of the words starting with the letter r from "run beep burp ran rin ron runt zoot zip pow" Pulling all words from a string excluding ones starting with a specific letter or pattern. For example, pulling all of the words except ones starting with the letter r from "run beep burp ran rin ron runt zoot zip pow" 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. If the string were "the green sky", the result would be the word green. I apologize in advance if these are really simple. It's just that I'm new to regular expressions and reading all of the web page tutorials, manual pages, and mailing list archive messages has left me thinking I'm complicating something somewhere, because it really shouldn't be this hard. Thanks in advance for any help you can offer. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php