Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Matching two real numbers in a string using regex

by Silicon Cactus (Scribe)
on Sep 06, 2002 at 14:35 UTC ( [id://195652]=note: print w/replies, xml ) Need Help??


in reply to Matching two real numbers in a string using regex

Why use a regex for this at all, when a simple split will do?
my($FirstNo, $SecondNo) = split /to/; Much more simple, IMHO.

Replies are listed 'Best First'.
Re^2: Matching two real numbers in a string using regex
by Flexx (Pilgrim) on Sep 06, 2002 at 14:45 UTC
    Since this would allow wantoeat? to be input? Anyway, for a quick shot you certainly got a point.. ;)
      Right. But without sample input, who's to know if that is likely? <grin>
        Right. But Anonymous Monk actually gave us some sample input in his question (so my objection was, ahh, truly theoretical.. ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found