Ahh!! Thanks for help.  That did it.

-Scott


-----Original Message-----
From: Jeff 'japhy/Marillion' Pinyan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 07, 2001 11:46 AM
To: [EMAIL PROTECTED]
Cc: Perl Help
Subject: RE: Remove White Space


On Aug 7, Scott Martin said:

>I am stumped, none of these are working.  I even tried something like
>$url=~s/\t*^\.htm/\.htm/g

Well, that is totally broken, so don't worry.

>       $url =~ s/<br>//gs;        #removes accidental <br> in the file

That /s modifier is totally useless there.

>       $url=~s/\t*^\.htm/\.htm/g  #the troubled line I can't figure
out, 
>remove the space between filename and .htm

If you want to remove ANY whitespace immediately preceding the .htm,
then
do:

  $url =~ s/\s+\.htm/.htm/;

If you want to remove ANY whitespace in the string at all, do:

  $url =~ s/\s+//g;

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]
http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/
http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002
**


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to