Guest User

Untitled

a guest
Sep 6th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Perl m// operator inexplicably fails to match a simple regex
  2. $ perl -E 'say "OK" if "mbox user@testdomain.it> " =~ /mboxs+.*@.*> /s'
  3. $
  4. $ perl -E 'say "OK" if "mbox user@testdomain.it> " =~ /mboxs+.*@t.*> /s'
  5. OK
  6. $
  7.  
  8. $ perl -E 'say "OK" if "mbox user@testdomain.it> " =~ /mboxs+.*@.*> /s'
  9. $
  10.  
  11. perl -E 'say "OK" if "mbox user@testdomain.it> " =~ /mboxs+.*@.*> /s' # Yours
  12. perl -E 'say "OK" if "mbox user@testdomain.it> " =~ /mboxs+.*@.*>/s' # Working
  13.  
  14. $ perl -E 'say "OK" if "mbox user@testdomain.it> " =~ /mboxs+.*@.*> /s'
Add Comment
Please, Sign In to add comment