in researching thw \W (i'm still a n00b at regex), also came across the [:alnum:] that'd do it as well.
But I think I'd tend to agree with Ben here. while it's absolutely a matter of personal preference, I kind of like seeing the explicit expression. Maybe that's just because I'm still geting used to regex. Easier for me to see what I'm dealing with at this point. On 1/23/06, Ben Doom <[EMAIL PROTECTED]> wrote: > "Simpler" is a matter of taste. I, for one, always forget that \w > includes digits, so seeing the [a-z0-9] clues me immediately. But, as I > said, that's purely personal preference. This works just fine and, in > fact, you can lose the brackets (they're implied, as \W is a built-in > class). > > --Ben > > James Smith wrote: > > Would it not be simpler to use... > > > > reReplace(mystring, '[\W]', '', 'all') > > > > -- > > Jay > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:5:193832 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
