I'm playing with twitter. I'm receiving an xml document and using preg_match_all on it. What i'm wanting to do is split it on the <user> tags. This is the code i'm trying...
preg_match_all('#<user>([.\s\n]*)</user>#',$s,$matches);
I've tried variations, all to no avail.
I'm actually unsure about the hash / pound 's at either end, but the example I got it from uses them...
Not sure if it's the angle brackets and such that's playing up...
Thanks for any help!