Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Removing blank space from a variable

3:58 pm on Mar 8, 2006 (gmt 0)

10+ Year Member


I would like to remove the blank space from the right hand side of a variable (while keeping any space on the left)..


" Text "

will become...

" Text"

Is there an easy way to do this?



3:59 pm on Mar 8, 2006 (gmt 0)

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member

I think rtrim is the fella for you:-


Just happened to be doing the same thing myself right now...



Featured Threads

Hot Threads This Week

Hot Threads This Month