On 5/2/2009, Doug McNutt said: >Is a start requiring that $word be surrounded by two non-word characters but >will fail when $word begins or ends a line. > >There's also the problem that perl's definition of a word character includes >programming conventions, particularly the underscore. > >BBEdit probably does a better job of understanding the OP's >actual desires. What if he actually wants to include hyphenated >instances which include -\n ?
I think the expression I sent handles all of the cases you mentioned. Obviously, though, if \W doesn't do what he wants then he can create his own negated character class like [^a-zA-Z]. Seth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "supp...@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---