results in:$_="I want to replace <P> in my string. I have to search for the <P> a +nd replace it with space. Thanks"; s/<P>/ /gi; print;
update: You might also want to try perldoc perlre which explains regular expressions fairly well.I want to replace in my string. I have to search for the and repla +ce it with space. Thanks
In reply to Re: How to replace the string withing a string
by coolmichael
in thread How to replace the string within a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |