Re: FW: Perl to python converter

2011-12-26 Thread Peter Scott
On Fri, 23 Dec 2011 17:38:35 +, fudmer rieley wrote: > I would love to work on this type of project, but I am a beginning perl > programmer. You'll find more assistance outside of a beginning Perl group. If you want to pursue this, your best bet is to pair up with an experienced Perl pro

Re: Regex : Extract data between { } spanning in multplie lines

2011-12-26 Thread Peter Scott
On Fri, 23 Dec 2011 01:56:40 -0800, iand wrote: > Ex file.txt: > A1 {@ a d e \n a b c} > A2 {@ 1 {2 3} \n a b c \n d e f} > > I need to extract these separately : > {@ a d e a b c } > {@ 1 {2 3} \n a b c \n d e f} > > perl -lne 'print $1 if '~/^[A-Z0-9]+\s\{.*$/m' file.txt I can extract > data by