Re: Removing block of text in string

2009-01-20 Thread Bobby
Thanks that works. --- On Tue, 1/20/09, Hridyesh Pant wrote: > From: Hridyesh Pant > Subject: Re: Removing block of text in string > To: cybercruis...@yahoo.com > Cc: beginners@perl.org > Date: Tuesday, January 20, 2009, 2:12 AM > $string = 'this is my text string

Re: Removing block of text in string

2009-01-20 Thread Hridyesh Pant
tion popup_large(theURL) { char(13) + char(10)if (theURL != "")char(13) + char(10){char(13) + char(10)var win = window.open(theURL, "PopupLarge",char(13) + char(10) "scrollbars=yes,width=820,height=530,resizable=yes");char(13) + char(

Re: Removing block of text in string

2009-01-19 Thread Gunnar Hjalmarsson
Bobby wrote: I'm using search and replace to solve this issue unless someone else have a better idea. Thanks. my $removeText=" type="text/javascript">function"; $string = ~s/$removeText//gi; $string =~ s,,,is; http://perldoc.perl.org/perlrequick.html http://perldoc.perl.org/perlretu

Re: Removing block of text in string

2009-01-19 Thread Bobby
(10) win.focus();char(13) + char(10)}char(13) + char(10)}char(13) + char(10)" --- On Mon, 1/19/09, Bobby wrote: > From: Bobby > Subject: Re: Removing block of text in string > To: beginners@perl.org > Date: Monday, January 19, 2009, 1:30 PM > I'm using se

Re: Removing block of text in string

2009-01-19 Thread Bobby
I'm using search and replace to solve this issue unless someone else have a better idea. Thanks. my $removeText=" type="text/javascript">function"; $string = ~s/$removeText//gi; --- On Mon, 1/19/09, Bobby wrote: > From: Bobby > Subject: Removing block

Removing block of text in string

2009-01-19 Thread Bobby
Hi, I have a javascript function in my long text string that i want to remove, how do i remove a text string from starting point to an ending point so that the javascript block to is remove from my text string? Thanks. Current: string = "this is my text string function blah blah..." Des