Hi, I have a list of order numbers (always 6 digits) followed by a dollar-amount and I’d like the preg_match to locate all the order numbers and the dollar amounts in a long string cluttered with html.
Example:
<?php $string = 'here is my order879475 for about $7.58and I want order this thing 327287 for $20.00 but only if767654 is worth $123.88 if that is okay. Then order#342435 is good for $0.05.'; ?>
Desired result:
879475 7.58
327287 20.00
767654 123.88
342435 .05
Whoa… I just realized this is kinda complicated. I sure thank you for taking a look at this!!