hi all,

I'm a little bit new in C and would like to know how i could use regular expression or some sort of parsing method to scan through mulitple files for specific values and store them in C variable.

Ie:. in the file i have name: "abcdef" ; id:12345 .. msgs... etc... name:"pqrs"; msg... id: 9876 ....

and i want to traverse through the whole file and grep ALL the names and ids values and store them in some type of struct array in C for use later.

How could i make use of the regexec? How would i load the file to input so that i could scan through and choose the value i want? Any suggestions or sample code would be greatly appreciated. Thanks in advance.