From: michael libby Date: 2002-10-22T11:54:09+09:00 Subject: Perl multiple match RE in Ruby? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Have this in Perl, would prefer it in Ruby. my @A = ($_[0] =~ /([-.]|\d+|[^-.\d]+)/g); Need to take String and get Array of all successive matches against string. Regex itself is fine, but hope there's an idiomatic way to run this without building a loop using MatchData#[1] and MatchData#post_match. Which I can do, but it seems clumsy. Thanks... -michael Michael C. Libby x@ichimunki.com http://www.ichimunki.com/ http://www.ichimunki.com/public_key.txt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9tL2h4ClW9KMwqnMRAvImAJ9pbHoGpwe9Bp6pnkZbocnFMS+8lQCfVQBK yUud+RcxxquK2Y4msXMYnnM= =BmQw -----END PGP SIGNATURE-----