Try using quotemeta function (http://www.perl.com/doc/manual/html/pod/perlfunc/quotemeta.html)

Isidro
卍秔卍 wrote:
<part of html code>

<a href=oper>Operation</a>

  >> <a href=oper?detail=31 title="ID = 31"
>OMnMusi y~</a>
<h2> OMnMusi y~</h2>
_JPHo1d77b0!D$MwxhzXL$WQZ2bFX!M3dbzjiDYROglF_w9sKr4cPSPvCYEDv5ElZ56S0EMJ_$LHHzuxKvYrJnzRLwrxRiiRukNu



</part of html code>

here is part of the perl code :

$title = "OMnMusi y~";
$content = "_JPHo1d77b0!D$MwxhzXL$WQZ2bFX!M3dbzjiDYROglF_w9sKr4cPSPvCYEDv5ElZ56S0EMJ_$LHHzuxKvYrJnzRLwrxRiiRukNu";


I wanna use ~m#<a href=""

to match it to check if the HTML works right.


but "$","&","*",etc will be translated into part of the regex.
This is really a trouble.
I wanna use ~s///g   to add a "\" before those charactor.But it seems don't work.


Could anyone help?

Thanks a lot~!
  

_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to