Hi Prasanna.k
Use Single Quote in $line string
$line = 'this is TelecommuterTrac\WebIntHitList3'; $line=~s#\QTelecommuterTrac\WebIntHitList3\E#country#;
Or
$line = 'this is TelecommuterTrac\WebIntHitList3'; $findstr='TelecommuterTrac\WebIntHitList3'; $findstr=quotemeta($findstr); $line=~s#$findstr#country#;
Output will get:
this is countryIn reply to Re: Regex doubt
by tulsyan
in thread Regex doubt
by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |