From: 7stud -- Date: 2008-01-26T07:35:00+09:00 Subject: Re: reg exp question 7stud -- wrote: > > result = str.gsub(/\D/, "") > \D is the symbol for any character except a digit, which is shorthand for [^0-9]. -- Posted via http://www.ruby-forum.com/.