From: Alex Young Date: 2007-08-03T04:14:35+09:00 Subject: Re: RegEx for punctuation? John Joyce wrote: > Hey all, > I have a quick question about RegEx, which I don't use often and I don't > have my reference book handy. > How do I gsub all non alpha-numeric characters to nothing, > I know it's something like this: > some_string.gsub!('something here', '') irb(main):002:0> ",.'abc123".gsub(/[^[:alnum:]]/, '') => "abc123" -- Alex