Could someone please point me in the right direction for the following application?:
I need to take about 15 lines of text that looks like this:
Order number (always starts with a #)
Title
Quantity
Random
Useless
Text,
Buttons
and
Graphics
First Name Last Name
Address1
Address2 (if applicable, if no address2, nothing here)
City, ST, ZIPCODE
USA
I would like to be able to copy and paste the entire contents of many of these pages (with different info on each) into one textarea and have PHP extract the information and build a .csv file in the following format:
Order number,Title,Quantity,First Name,Last Name,Address1,Address2,City, ST, ZIPCODE,Country
=====
I'm thinking I'll have to use some regular expressions, but like I mentioned before, I could really use some general guidance on how to attack this.
Thank you very much,
Jorge