Help with Regex

    Date: 07/22/05 (PHP Development)    Keywords: no keywords

    I need some help with a regex string.


    What I want to match is this:
    All characters that appear between the first space after the character 'a' and the character 'z' EXCEPT for the characters that appear before the first white space after the letter 'i'.

    Confused?

    Here's an example:
    Ok - I've got a string that looks like this:
    "abc defgh ijk z"

    What I want to return is "defgh"

    If the string is like this:

    "abc def gh ijk lm n opq z"

    Then I'd want to return this:
    "def gh lm n opq"

    Anyone got any ideas on how to do this?

    Source: http://www.livejournal.com/community/php_dev/60148.html

« PHP_SELF versus SCRIPT_NAME || clickable url's & emails »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home