Greetings,
I am starting to work on PHP regular expressions.
I have titles in a page enclose by <getname>XXXX</getname>.
When i try to get a title form a page which has 1 title it works, but if it has more than one title, it goes on reading the rest of the page.
I am using this expression:
$name_pat[0] = "<getname>(.+)</getname>";
I would appreciate any help, and if there is any other ways (better to do it).
When I do it with the prices:
$price_pat[0] = "<getprice>(.[0-9]+.[0-9]+)</getprice>";
it works just fine.
Peace,