From: Dave Thomas Date: 2001-10-25T22:53:37+09:00 Subject: [ruby-talk:23294] Re: RegExp question "Morris, Chris" writes: > I need to scan text and treat some punctuation (brackets, slashes) as if > they were word characters, but not others (periods, commas). > > I essentially would like to re-define the set that \w uses then I could > simply use: > > /\w+/ Chris: You could do something like /[\w:,.]+/ to match one or more word characters, colons, commas or periods. Is that the kind of think you wanted? Dave