Question
Parsing a text file
I am trying to parse a long string and get specific values
out. The file is actually an email and I need to pull out items
from the body to populate a query. The email would look something
like
Name: Value, Test Home: (800)555-1212
Address1: 98 Test Center Dr Work: (800)5555-1212
I need to pull the values out to populate firstName, lastName, dayPhone, etc...
I can't get the company to provide this in any other format. I am thinking this should be possible using regular expression to strip all the spaces out, then get the value of firstName by finding Name: and then , and grabbing whats in the middle.
Any ideas on this?
Name: Value, Test Home: (800)555-1212
Address1: 98 Test Center Dr Work: (800)5555-1212
I need to pull the values out to populate firstName, lastName, dayPhone, etc...
I can't get the company to provide this in any other format. I am thinking this should be possible using regular expression to strip all the spaces out, then get the value of firstName by finding Name: and then , and grabbing whats in the middle.
Any ideas on this?
