'\d' is used to match the digits in regular expressions. You can write the regular expression like
while (<FH>) { print "Matched Number:",$1 if(/(\d+)/g); }
In reply to Re: Regex to extract number from text file
by velusamy
in thread Regex to extract number from text file
by premal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |