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

Re: reg exp

by ungalnanban (Pilgrim)
on Mar 02, 2010 at 08:54 UTC ( #826103=note: print w/ replies, xml ) Need Help??

in reply to reg exp

Are you trying for this. see the Example.
use strict; use warnings; while(1) { my $data=<STDIN>; if($data =~ /ipw\.[ar][a-z][a-z]*/) { print "Match\t\t$data \n"; } else { print "Not Match $data\n"; } }

We already answered for this question in "dont consider if (......)". First you learn regular expression.
Refer the following Links.

Comment on Re: reg exp
Download Code
Replies are listed 'Best First'.
Re^2: reg exp
by venkatperl55 on Mar 02, 2010 at 13:11 UTC
    Good links, Thanks.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2015-07-28 23:06 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (260 votes), past polls