Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Match something that does not match

by jo37 (Deacon)
on Feb 15, 2020 at 17:42 UTC ( [id://11112994]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $does_not_match = qr{((?:.*?(?=$match))|(?:(?:.(?!$match))*))};
    
  2. or download this
    #!/usr/bin/perl 
    
    ...
        for 'electron impact ionization';
    
    done_testing;
    
  3. or download this
    use Regexp::Common 'do_not_match';
    
    my $re = $RE{do_not}{-match => 'something'}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11112994]
Approved by LanX
Front-paged by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-23 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found