[Israel.pm] number recognizer

Shlomo Yona shlomo at cs.haifa.ac.il
Tue May 18 00:57:24 PDT 2004


On Tue, 18 May 2004, Offer Kaye wrote:

> You sound disappointed. What does this:
>    if (/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/)
>    { print "a C float\n" }
> 
> Not match that you need to match as a number?

Not disappointed at all. This is probably what I was looking
for.

-- 
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/




More information about the Perl mailing list