lipun4u Posted October 5, 2009 Share Posted October 5, 2009 preg_match_all('/\'(.*?)\'/', $row[1], $enum_array); what does it mean by the above pattern ??? Quote Link to comment https://forums.phpfreaks.com/topic/176542-re-pattern/ Share on other sites More sharing options...
Mchl Posted October 5, 2009 Share Posted October 5, 2009 Match everything between the first and the last single quote. Quote Link to comment https://forums.phpfreaks.com/topic/176542-re-pattern/#findComment-930614 Share on other sites More sharing options...
.josh Posted October 5, 2009 Share Posted October 5, 2009 actually it's match and capture everything but a newline (no modifier for the dot) between all (preg_match_all) "first" and "next" (lazy quantifier) single quote characters. Quote Link to comment https://forums.phpfreaks.com/topic/176542-re-pattern/#findComment-930797 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.