Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have this PHP regex string:
- preg_match('/<p><a href="TR\?fr_id=60186\&pg=teamlist">([0-9]{1,}) teams<\/a> and <a href="TR\?fr_id=60186\&pg=topparticipantlist">([0-9]{1,}) participants<\/a> have raised <span id="tr-greeting-fundraisingStats">(.*)<\/span><\/p>/im', $file, $matches);
- I want to grab the numbers from this string:
- <p><a href="TR?fr_id=60186&pg=teamlist">221 teams</a> and <a href="TR?fr_id=60186&pg=topparticipantlist">1,001 participants</a> have raised <span id="tr-greeting-fundraisingStats">$23,323.16</span></p>
- I think the comma in the 1,001 is messing it up.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement