in reply to Regex can't find match

quotemeta
$find=quotemeta '<a href="/cgi-bin/ruling?candy=265-23&path=/rules/oth +er/265-23&file_num=265-23&action=Show_Form" class="subCat9">Click to +submit</a>';

Replies are listed 'Best First'.
Re^2: Regex can't find match
by sherab (Scribe) on Apr 07, 2014 at 19:08 UTC
    OMG toolic, you have saved me so much trouble. Thank you very much. Now to get familiar with quotemeta.

      Specifically, the  ? quantifier regex metacharacter. See Quantifiers in perlre. Instead of quotemeta, you could also use
          $text=~s/\Q$find\E/$replace/g;