Thanks for your replies.
I changed the file to look like this:
{ testName : {"someParam": "value1", "anotherParam": (value2, value3)},
}
to make it look like a hash to Python.
Thanks,
Raj
On Thu, May 7, 2009 at 5:19 PM, Rhodri James
wrote:
> On Fri, 08 May 2009 00:51:14 +0100, Rajanikanth J
On Fri, 08 May 2009 00:51:14 +0100, Rajanikanth Jammalamadaka
wrote:
Hi
I have a text file as follows:
testName = (
someParam = value1
anotherParam = (value2, value3)
)
how do I write a regular expression to get all the contents of the
file which are between the first and last parenthese
On 5/7/2009 4:51 PM Rajanikanth Jammalamadaka said...
Hi
I have a text file as follows:
testName = (
someParam = value1
anotherParam = (value2, value3)
)
how do I write a regular expression to get all the contents of the
file which are between the first and last parentheses.
In this case,