Regex parsing
Posted: Thu Nov 20, 2003 6:04 am
I have a text database file which has entries like
//--First Record
|:010 Keyword1:itsvalue
:020 Keyword2:anothervalue
:030 Keyword3:thirdvalue
.......
......
....
:500 Keyword500:somevalue
//Second Record
|:0610 Keyword1:value
......
Records are separated by the "|" symbol(OR)
How do I parse it so that I can separate each record and take the keyword's values
Keywords and values are like "LOCATION:someplace","EMPLOYEE:contract" etc.
Can anybody help please?
//--First Record
|:010 Keyword1:itsvalue
:020 Keyword2:anothervalue
:030 Keyword3:thirdvalue
.......
......
....
:500 Keyword500:somevalue
//Second Record
|:0610 Keyword1:value
......
Records are separated by the "|" symbol(OR)
How do I parse it so that I can separate each record and take the keyword's values
Keywords and values are like "LOCATION:someplace","EMPLOYEE:contract" etc.
Can anybody help please?