use strict; use warnings; use Regexp::Common; $_ = '<span class="style">28.56</span><span class="style">-1.22</span> +' . '<span class="style">-4.1</span><span class="style">04/02</span>' +; my ($f, $s) = /($RE{num}{decimal}).*?($RE{num}{decimal})/; print "$f $s\n"; __END__ 28.56 -1.22
Abigail
In reply to Re: A regex question with 2 pieces of data
by Abigail-II
in thread A regex question with 2 pieces of data
by bilbozilla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |