Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: reg exps

by dingus (Friar)
on Nov 28, 2002 at 14:18 UTC ( [id://216303]=note: print w/replies, xml ) Need Help??


in reply to reg exps

Substitute with what? nothing? Try this:
open (FILE, "<$fn"); $_ = join('',<FILE>); close(FILE); s/[^\d\.]+//sg; print $_;

Dingus


Enter any 47-digit prime number to continue.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found