in reply to how to do get digit numbers like -,.?
++ 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+)/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to do get digit numbers like -,.?
by frozenwithjoy (Priest) on Jun 01, 2013 at 13:24 UTC |