praveenchappa has asked for the wisdom of the Perl Monks concerning the following question:
i had a string basically the contents of a whole file ,i want to extract substrings whenever a pattern occurs as below....
this is my string and i want to extract the string between @begin....@end store the multipe occurances to another string$string=" hi hello @begin i want this to extract yes i want @end asas x x x x x zxzxax hi hello hi hellooo @begin i want this to extract yes i want @end" .....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help regarding a regular expression in perl
by AnomalousMonk (Archbishop) on Nov 19, 2014 at 10:17 UTC | |
|
Re: help regarding a regular expression in perl
by pme (Monsignor) on Nov 19, 2014 at 09:38 UTC | |
|
Re: help regarding a regular expression in perl
by Sathishkumar (Scribe) on Nov 19, 2014 at 09:15 UTC | |
by praveenchappa (Acolyte) on Nov 19, 2014 at 09:30 UTC | |
|
Re: help regarding a regular expression in perl
by praveenchappa (Acolyte) on Nov 20, 2014 at 07:15 UTC |