Re: [MacPerl-AnyPerl] negative lookahead problem

2001-08-09 Thread allan
hi christian if you insetad of (?!.?*<\/script>) really meant: (?!.*?<\/script>) that does not help though i don“t see why ... thanks anyway allan > I think you should make the look ahead less greedy like > (?!.?*<\/script>) > or it will keep on til the last ...

Re: [MacPerl-AnyPerl] negative lookahead problem

2001-08-09 Thread Christian Huldt
On Friday, August 10, 2001, at 12:01 AM, allan wrote: > hi > > i want to do a global replace om a search string _unless_ the string is > encapsulated in tags. > i have a file that looks like this > > > type=text1 > type=text2 > > > type=text3 > type=text4 > > > type=text5 > type=text6 > > >

[MacPerl-AnyPerl] negative lookahead problem

2001-08-09 Thread allan
hi i want to do a global replace om a search string _unless_ the string is encapsulated in tags. i have a file that looks like this type=text1 type=text2 type=text3 type=text4 type=text5 type=text6 type=text7 type=text8 and a program that looks like this. apparenly somthing is wrong a