Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while(<DATA>){ chomp; $_ =~ s/{AUTHOR}([^{]+)//g; print $1; } __DATA__ {TAG} tag1 {AUTHOR} By June Fletcher JOURNAL {TAG} tag2 TOM MacCUBBIN {DATA} data1 {AUTHOR} Richard White {AUTHOR} MacCUBBIN {SOUR}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression
by ELISHEVA (Prior) on Aug 16, 2009 at 13:26 UTC | |
by jbt (Chaplain) on Aug 16, 2009 at 13:55 UTC | |
by Anonymous Monk on Aug 16, 2009 at 14:31 UTC | |
by vitoco (Hermit) on Aug 16, 2009 at 19:13 UTC | |
by Utilitarian (Vicar) on Aug 16, 2009 at 19:28 UTC | |
| |
|
Re: regular expression
by GrandFather (Saint) on Aug 16, 2009 at 20:21 UTC |