preg_replace not working for charachter \
Posted
by krike
on Stack Overflow
See other posts from Stack Overflow
or by krike
Published on 2010-05-03T11:12:02Z
Indexed on
2010/05/03
11:18 UTC
Read the original article
Hit count: 252
preg-replace
|php
I'm trying to replace \' with ' but it won't work
This is the text I want to replace from
Using Twitter\'s @Anywhere Service in 6 Steps
and this is the code
$tutorial = "Using Twitter\'s @Anywhere Service in 6 Steps ";
echo $tutorial."<br /><br />";
$tut_title = preg_replace("/\\'/", "'", $tutorial);
echo $tut_title;
© Stack Overflow or respective owner