Sorry for the simple question that I could research, but i crashed a database today, been here 12 hours, and want to go home.
I am rotating recursively through files trying to extract city, phone number, and email address so that I can match the city and phone to my database entries and update the users email address. In theory, they could just login with their email and request to reset their password.
heres what i need. my file contents look like this:
> Address : 123 main street City : somecity State/Province : somestate
> Zip/Postal Code : 12345 Country : United States Phone : 1231231234 Fax
> : E-Mail : example@example.com ==== CUSTOMER SHIPPING INFORMATION ===
I should note that there is other info before and after the snippet I showed. Can someone please help me with a regex to remove the 3 items? Thanks.
Try something like this, without regex..
Result…
If there are linebreaks, something like this…
Solution with regex..
Result: