我已經用Google搜索,並試圖掩飾我的字符串\
,\\
和/
,//
但其中的非工作....我的字符串是:[XBOX XBOX Windows]
,我使用mb_eregi_replace(...)
。如何隱藏[和]在mb_eregi_replace()正則表達式?
我現在的問題是我怎麼能斗篷[
和]
告訴mb_eregi_replace(...)
功能,這些都[
和]
字符屬於字符串?
我的代碼:
$string = "[XBOX XBOX Windows]";
echo mb_eregi_replace('\b[XBOX XBOX Windows]\b', 'XBOX Live 25 Euro', $string);
我把\
,\\
和/
,//
的[
和]
之前。
問候和謝謝你!
不,不行! – Jan