Help for this page

Select Code to Download


  1. or download this
    $_ = 'foo(';
    
    ...
    
    # test it
    print "match" if /$regex/;
    
  2. or download this
    $regex =~ s/([^\w\s\\|()[\]{}^\$*+?.])/\\$1/g;