Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 goofing around in the Monastery: (None)
    As of 2024-04-25 01:45 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found