Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Between START .. END

by softworkz (Monk)
on Sep 14, 2005 at 17:00 UTC ( #491929=note: print w/ replies, xml ) Need Help??

in reply to Re: Between START .. END
in thread Between START .. END

Here's a regex that would do the trick.

#!/usr/bin/perl -w use strict; while (<DATA>) { $_ =~ tr/!@#$%^&*//d; # will you encounter funky chars? next unless ($_ =~/(^\d+)/); print $_; } __DATA__ START 1 2 3! 4 5 END START 1* 2 3 4 5 6 END

Comment on Re^2: Between START .. END
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-11-27 04:11 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (717 votes), past polls