sumathigokul has asked for the wisdom of the Perl Monks concerning the following question:
Perl Gurus...
Please suggest me some idea to write particular statement after certain lines of regex match...
(1)first line. (2)second line. (3)third line. (4)fourth line. (5)fifth line.
when it finds regex "first", then output need to be like this...
(1)first line. (2)second line. yes, first word is found (3)third line. (4)fourth line. (5)fifth line.
Give me some example codes which may guide me to write the required code for my requirement??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to insert new line in text file after regex match?
by Corion (Patriarch) on May 21, 2015 at 10:54 UTC | |
Re: how to insert new line in text file after regex match?
by aaron_baugher (Curate) on May 21, 2015 at 11:48 UTC | |
by marinersk (Priest) on May 21, 2015 at 18:34 UTC | |
by aaron_baugher (Curate) on May 21, 2015 at 21:55 UTC | |
by sumathigokul (Acolyte) on May 21, 2015 at 12:44 UTC |
Back to
Seekers of Perl Wisdom