B
B Loggins
Hi everyone, I have reports of the form:
Name: Value
Name2: Value
And so on... the report is padded right on the value so the colons
line up properly. I can match this pretty well, but some of the
attributes have multiline values. Here's an example:
Name: John Doe
Phone: 555-5555
City: Dallas, TX
FavoriteBands: Metallica
Korn
Filter
Mood: Happy
Basically, I don't have a problem matching lines like " Name:
John Doe", but how do I make a regular expression that knows to match
Metallica, Korn, and Filter under Favorite Bands, then continue as
normal with "Mood" => "Happy"?
Thanks in advance for the help, and my apologies if this is a FAQ. I
tried to find something on it but to no avail.
Name: Value
Name2: Value
And so on... the report is padded right on the value so the colons
line up properly. I can match this pretty well, but some of the
attributes have multiline values. Here's an example:
Name: John Doe
Phone: 555-5555
City: Dallas, TX
FavoriteBands: Metallica
Korn
Filter
Mood: Happy
Basically, I don't have a problem matching lines like " Name:
John Doe", but how do I make a regular expression that knows to match
Metallica, Korn, and Filter under Favorite Bands, then continue as
normal with "Mood" => "Happy"?
Thanks in advance for the help, and my apologies if this is a FAQ. I
tried to find something on it but to no avail.
?<value>([^:]+$)+)