Help for this page

Select Code to Download


  1. or download this
    $foo = qq{^snafu^|^foobar^\n};
    
    ...
             /xms;
    $text_qual = $1;
    $field_sep = $2;
    
  2. or download this
    $foo =~ m/\A(\W) # \A instead of ^ and match first non-word
              \w+\1  # Match any word char until the next \1
              (\W)   # Match following non-word
             /xms;