Help for this page

Select Code to Download


  1. or download this
    $_ = "ab_";
    print "\\b matches\n" if m!ab_\b!;
    $_ = "ab*";
    print "\\b matches\n" if m!ab\*\b!;
    
  2. or download this
       m@((\*|_)\S+\b)(.+?)(\b\S+\2)@s