Are you particular about a regular expression? Or would it suffice for you to get the job done?
Why not search for "Name : " and "Othername : " (or whatever the names of your fields are). One plus the end of the first search pattern and the beginning of the next search pattern give you the start and end iterators for the substrings that represent the values of your fields.
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
Joined: Oct 24, 2007
I also do not know what the field names could be.
It could be anything. All I know is the structure.
Seems to be difficult. I think I might have to write my own parser and just go through the string one character at a time.
Joined: Mar 22, 2005
Can the field names also contain spaces? If not, then it should be possible w/o much effort.