Oct 1, 2004 #1 netooi25 Programmer Jul 30, 2004 25 US I have a string that i get scanning a html file using the html::tokeparser however the string has two   characters at the end of the string sometimes.. I need to be able to remove these when they are present. Thanks for any help
I have a string that i get scanning a html file using the html::tokeparser however the string has two   characters at the end of the string sometimes.. I need to be able to remove these when they are present. Thanks for any help
Oct 2, 2004 #2 PaulTEG Technical User Sep 26, 2002 4,469 IE $string=~s/ //g; will do it if they're the only 's in the string $string=~s/ / /g; will just convert them spaces which you can trim $string =~ s/\s+$//; HTH --Paul It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker Upvote 0 Downvote
$string=~s/ //g; will do it if they're the only 's in the string $string=~s/ / /g; will just convert them spaces which you can trim $string =~ s/\s+$//; HTH --Paul It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker