stallion has asked for the wisdom of the Perl Monks concerning the following question:
Is there any regex to delete a complete line and replace with another line....
For eg: macros perl macros monks macros one liner macros have to be converted as macros regex macros regex macros regex macros regex
Whatever follows macros whether it is empty or followed by a string have to be replaced with regex and All macros will be at the beginning of the line so we can include ^ character in the regex.
Thanks Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl One Liner Regular Expressions
by cheekuperl (Monk) on Aug 16, 2012 at 11:20 UTC | |
|
Re: Perl One Liner Regular Expressions
by uday_sagar (Scribe) on Aug 16, 2012 at 11:44 UTC | |
by hbm (Hermit) on Aug 16, 2012 at 13:32 UTC | |
by cheekuperl (Monk) on Aug 16, 2012 at 13:20 UTC | |
|
Re: Perl One Liner Regular Expressions
by cheekuperl (Monk) on Aug 16, 2012 at 11:17 UTC |