RE: [Perl-unix-users] Multiline substitution

2002-04-18 Thread Nikko Odiseos
] Subject: Re: [Perl-unix-users] Multiline substitution Nikko Odiseos wrote: > I have just done an xml dump of several thousand records from a db. > I have to actually go through each one as the xml from the db has the > following: > > > > > > (all the values in thes

RE: [Perl-unix-users] Multiline substitution

2002-04-18 Thread Matthew Musgrove
Okay, I spoke too soon... I didn't notice the change from the usual /'s to |''s. Matt ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Perl-unix-users] Multiline substitution

2002-04-18 Thread $Bill Luebkert
Nikko Odiseos wrote: > I have just done an xml dump of several thousand records from a db. > I have to actually go through each one as the xml from the db has the > following: > > > > > > (all the values in these fields are empty) > > but needs to have this instead: > > > > > > > >

RE: [Perl-unix-users] Multiline substitution

2002-04-18 Thread Matthew Musgrove
> while () { > $_ =~ s|()|$1 name="features"/> name="features"/>|smg; > print $_; > } Try it with backslashes in front of the slashes. while () { $_ =~ s|()|$1<\/value>|smg; print $_; } Matthew Musgrove __

[Perl-unix-users] Multiline substitution

2002-04-18 Thread Nikko Odiseos
I have just done an xml dump of several thousand records from a db. I have to actually go through each one as the xml from the db has the following: (all the values in these fields are empty) but needs to have this instead: I thought this might work but it does not do a substituti