IwnfuM Posted September 22, 2010 Share Posted September 22, 2010 Hi , how i can search the char - \ - with regex? i have a little problem with find it in some text with preg_match. Ive tried something like that . $regex = '/\\{1}/'; Simply it was about to search the char /. Thanks , Mor. Quote Link to comment https://forums.phpfreaks.com/topic/214140-char/ Share on other sites More sharing options...
Pikachu2000 Posted September 22, 2010 Share Posted September 22, 2010 With: \\\\ Quote Link to comment https://forums.phpfreaks.com/topic/214140-char/#findComment-1114257 Share on other sites More sharing options...
IwnfuM Posted September 22, 2010 Author Share Posted September 22, 2010 Why the hell it have never showed up in the regex tutorials ? helped me lot. thanks , Mor. Quote Link to comment https://forums.phpfreaks.com/topic/214140-char/#findComment-1114260 Share on other sites More sharing options...
salathe Posted September 23, 2010 Share Posted September 23, 2010 Did you RTFM? See the note on that page between the 2nd and 3rd paragraphs. Quote Link to comment https://forums.phpfreaks.com/topic/214140-char/#findComment-1114402 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.