skein Posted May 11, 2009 Share Posted May 11, 2009 what is the regexp sign for [ and ] ??? Quote Link to comment https://forums.phpfreaks.com/topic/157713-solved-quik-regexp-question/ Share on other sites More sharing options...
revraz Posted May 11, 2009 Share Posted May 11, 2009 Should be able to find your answer in the RegEx forums http://www.phpfreaks.com/forums/index.php/board,43.0.html Quote Link to comment https://forums.phpfreaks.com/topic/157713-solved-quik-regexp-question/#findComment-831770 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 Question: "what is the regexp sign for [ and ]" Answer: "[ and ]" Thanks for answering your own question. Please do that again! Quote Link to comment https://forums.phpfreaks.com/topic/157713-solved-quik-regexp-question/#findComment-831772 Share on other sites More sharing options...
Mchl Posted May 11, 2009 Share Posted May 11, 2009 Question: "what is the regexp sign for [ and ]" Answer: "[ and ]" Thanks for answering your own question. Please do that again! Except that in most cases they will be seen as character class delimiters. To make sure it isn't the case, escape them with \ So \[ and \] Quote Link to comment https://forums.phpfreaks.com/topic/157713-solved-quik-regexp-question/#findComment-831781 Share on other sites More sharing options...
Maq Posted May 11, 2009 Share Posted May 11, 2009 I think you mean, literal '[' and ']', which you would have to escape them, \[ \]. Moving to PHP Regex... Quote Link to comment https://forums.phpfreaks.com/topic/157713-solved-quik-regexp-question/#findComment-831783 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.