I have a string that always follows the format:
This Fee Name : * Fee Id * Fee Amount $* is required for this activity
Example:
This Fee Name : STATE TITLE FEE Fee Id 2 Fee Amount $5.50 is required for this activity
What I would like to do using PHP is pass the string and get the results
STATE TITLE FEE25.50
I’m pretty sure preg_match_all is what I want, but cannot figure out how to use the regex properly.
Try the following:
Output: