--- dda <[EMAIL PROTECTED]> wrote:
> See the thread about array of matches. > > (\W)(\w+)(\W) > \2 contains the word â defined as one or more characters in > the > [a-zA-Z0-9_] set. There's also the \b operator, which matches a word boundary. \b([a-zA-Z'-]+)\b will match any whole word (including words like "it's" and "mish-mash"), without the need to keep track of \1 and \3 in the substitution. Note that \b is a rare sort of RegEx operator, in that it has a different meaning when used inside square brackets: "\band\b" matches the word "and" but not "band" or "handy", whereas "[A-Za-z\b]" matches any alphabetic character plus Backspace. Mark Nutter Quick and easy regex creation and debugging! http://www.bucktailsoftware.com/products/regexplorer/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
