Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: On zero-width negative lookahead assertions

by antirice (Priest)
on Sep 10, 2004 at 15:16 UTC ( #390109=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    > perl -l
    $,=$/;
    ...
    wrong:
    (?-xism:a)
    (?-xism:a\\\@b)
    
  2. or download this
    > perl -l
    $_='root: admin@somewhere.here';
    ...
    __END__
    (root:)()
    Postmatch contained " admin@somewhere.here"
    
  3. or download this
    Hardcoded:
    /^root:(?!\s*admin\@somewhere\.here)/
    ...
    Variable:
    my $admin_email = 'admin@somewhere.here';
    /^root:(?!\s*\Q$admin_email\E)/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-01-21 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (59 votes). Check out past polls.

    Notices?