Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: regular expressions with !

by svenXY (Deacon)
on Sep 14, 2006 at 14:26 UTC ( [id://572928]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    print 'no match 1',"\n" if not $test_string =~ /$regex/;
    print 'no match 2 ',"\n" if ! $test_string =~ /$regex/;
    print 'no match 3', "\n" unless $test_string =~ /$regex/;
    
  2. or download this
    no match 1
    no match 3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found