in reply to Is there anything that would not be matched by /\w\W/i ?

yes. \w matches any "word" character = [a-zA-Z_0-9]. \W matches anything else. the /i makes no difference in this example (it does not make the regex /[\w\W][\W\w]/ as I think you may believe).

The following will not match:

Can't think of any more! Hope this helps - larryk

"Argument is futile - you will be ignorralated!"

Replies are listed 'Best First'.
Re: Re: Is there anything that would not be matched by /\w\W/i ?
by tye (Sage) on May 30, 2001 at 22:20 UTC

    Replace your third entry above with:

    • a string of \W chars followed by \w chars (e.g. '*%$abc')
    Just FYI. (:

            - tye (but my friends call me "Tye")