Re: regular expression for getting content between parentheses

2009-05-07 Thread Rajanikanth Jammalamadaka
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

Re: regular expression for getting content between parentheses

2009-05-07 Thread Rhodri James
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

Re: regular expression for getting content between parentheses

2009-05-07 Thread Emile van Sebille
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,

regular expression for getting content between parentheses

2009-05-07 Thread Rajanikanth Jammalamadaka
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, I want: someParam = value1 anotherParam = (value2, va