Sunday, December 04, 2005

Perl: match numbers

to match one or more numbers in a string

$str ~= /(\d+)/

0 Comments:

Post a Comment

<< Home