++ for asking a complete question. Here is a complete answer:
use warnings; use strict; my @f =( "Figure. 89-9","Figure 12-8","Figure 1.2"); foreach (@f) { print " $1\n" if /(\d+[-.,]\d+)/; }
In reply to Re: how to do get digit numbers like -,.?
by hdb
in thread how to do get digit numbers like -,.?
by virudinesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |