Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^7: Regex problems using '|'

by JavaFan (Canon)
on Jul 22, 2008 at 12:45 UTC ( [id://699294] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $str =~ /pat1/ or $str =~ /pat2/;
    
  2. or download this
    $vulnerabilityText =~ m/^.+?Remediation Report\n\n(.+?)\n|^(.+?)\n/;