Home: Perl Programming Help: Regular Expressions:
search for a string and replace with multiple lines



indu
New User

Mar 9, 2010, 5:30 AM


Views: 4828
search for a string and replace with multiple lines

Hi:

I have a following problem to design.

My search String in a text containing many lines is

ABCD_3000:SomeText

My Replace string is a multiple lines as below.... how to implement this ?



****

3.00.1.0.1

03/10/2010 XYZ Person

None - Change reason



Regards,

Indu


rovf
Veteran

Mar 11, 2010, 6:37 AM


Views: 4750
Re: [indu] search for a string and replace with multiple lines

Don't worry: For the replacement string in s///, it is OK to contain \n.