PHP Pattern Matching
Hi all,
I was wondering if anyone could help me with the following problem. I have strings on my page, in which I need to output just the price.
For example:
A string such as: 8 Weeks: 4 Months - £1200
I only want to extract just the £1200 part of it. The trouble is, that I have tried stripping everything but the numbers, but I get something like: 841200 - which is completely wrong.
Any ideas would be greatly appreciated.
Thank you.
|