Re[2]: [PHP-DEV] preg_match_all() weirdness

2001-12-30 Thread Daniel Lorch
Hi, >> because nothing matches the whitespace character, and foo is also not >> matched. i would suggest following regular expression: > Never mind, I sorted it out. Sorry for bothering. no problem. i was actually indirectly asking for advice, because this regular expression still doesn't work

Re: [PHP-DEV] preg_match_all() weirdness

2001-12-30 Thread Sebastian Bergmann
Daniel Lorch wrote: > because nothing matches the whitespace character, and foo is also not > matched. i would suggest following regular expression: Never mind, I sorted it out. Sorry for bothering. > parray_tree($matches); Looks nice, where do I get this? (Or have I missed this?) -- Se

Re[2]: [PHP-DEV] preg_match_all() weirdness

2001-12-30 Thread Daniel Lorch
Hi, > Daniel Lorch wrote: >> shouldn't this be >> [^>]+ instead of [^]]+ > This yields the same result. because nothing matches the whitespace character, and foo is also not matched. i would suggest following regular expression: --- snip ]*)\"

Re: [PHP-DEV] preg_match_all() weirdness

2001-12-29 Thread Sebastian Bergmann
Daniel Lorch wrote: > shouldn't this be > [^>]+ instead of [^]]+ This yields the same result. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Maili

Re: [PHP-DEV] preg_match_all() weirdness

2001-12-29 Thread Daniel Lorch
Hi, > preg_match_all('/\/im', >'', shouldn't this be [^>]+ instead of [^]]+ Kind Regards, Daniel Lorch -- if(empty($a) == true ? true : false) -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP-DEV] preg_match_all() weirdness

2001-12-29 Thread Daniel Lorch
Hi, > preg_match_all('/\/im', >'', shouldn't this be [^>]+ instead of [^]]+ Kind Regards, Daniel Lorch -- if(empty($a) == true ? true : false) -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP-DEV] preg_match_all() weirdness

2001-12-29 Thread Sebastian Bergmann
/im', '', $pi ); print_r($pi); ?> prints Array ( [0] => Array ( [0] => ) [1] => Array ( [0] => foo var1="value1"