Help for this page

Select Code to Download


  1. or download this
    my $regex = '\b(?:' . join('|', @nums) . ')\b'; # update: fixed concat
    +enation issue
    
  2. or download this
    my $regex = '\b(' . join('|', @nums) . ')\b'; # update: fixed concaten
    +ation issue
    
  3. or download this
    DB<1> $_ = "oh blah dee"
    DB<2> ($x) = m/(blah)/
    DB<3> x $x
    0  'blah'