in reply to Re: Re: A regex question with 2 pieces of data
in thread A regex question with 2 pieces of data
will put the first two numbers, regardless of what they are, into $one and $two. (Make sure to use Regexp::Common; in your script though before using the regex above!)my ($one, $two) = ($data =~ /($RE{num}{decimal}).*?($RE{num}{decimal})/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: A regex question with 2 pieces of data
by diotalevi (Canon) on Apr 08, 2003 at 00:54 UTC | |
|
Re: Re: Re: Re: A regex question with 2 pieces of data
by Anonymous Monk on Apr 08, 2003 at 01:05 UTC | |
by The Mad Hatter (Priest) on Apr 08, 2003 at 01:12 UTC |