-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 04 Jan 2001 12:03, I think Dave Thomas wrote: > str = "d12345d" # => "d12345d" > str.scan( /[[:digit:]]+/ ) # => ["12345"] > > > Them brackets'll get you every time. btw. I believe Matz is > deprecating the :xxx: character classes (which is why we didn't > document them). Thanks for mentioning that - I was just about to look them up in the regex part of the pickaxe book. I didn't think I had seen them before :) - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6U7mqzrxa+Gy/b/4RAs8uAJ94NwtIPBuXsO94I0aj6trOj/ZCmQCdF+Xp RTwqxWMw9noZ7t6uR3iGcdU= =1c4H -----END PGP SIGNATURE-----