Hi. I'm trying to use preg_match_all in order to get the string between " " , that work's for new lines too. For example, if i have the $string='this is "my string " and i want parse the value into an array. \n and "another string" too. '; and preg_match_all('expresion', $string, $matches); After that , matches[0]=my string matches[1]=another string and so on. Please help my guys with right expresion, i need it a lot. Thank You
Done If you are intereseted, this is the expresion preg_match_all('/"(.*)?"/iU', $a, $matches); Thank's danx'10 anyway
$pattern = '/"([^"]*)"/' preg_match_all($pattern, $string, $matches); Always test your regular expression, http://www.pagecolumn.com/tool/pregtest.htm