I have a file which is of the following form :
some text
some more text
. . .
. . .
data {
1 2 3 5 yes 10
2 3 4 5 no  11
}
some text
some text
I want to extract the data portion of the file using regular expression using the following procedure:
proc ExtractData {fileName} {
    set sgd [open $fileName r]
    set sgdContents [read $sgd]
    regexp "data \\{(?.*)\\}" $sgdContents -> data
    puts $data
}
But this is giving the following error:
couldn't compile regular expression pattern: quantifier operand invalid
I am not able figure out what is wrong with regular expression. Any help would be highly appreciated.
 
    