Advertisements

"Joey" <> wrote in message
news:...
> This should not be this tough but I may be thinking too hard about it.
>
> Here's what I have:
>
> thenames="charles,sam,chris,"
>
> How do I do remove the last comma? I tried using trim and replace
> together but couldn't get it.
>
> Thanks!
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

Advertisements

Joey wrote on 24 sep 2004 in microsoft.public.inetserver.asp.general:
> This should not be this tough but I may be thinking too hard about it.
>
> Here's what I have:
>
> thenames="charles,sam,chris,"
>
> How do I do remove the last comma? I tried using trim and replace
> together but couldn't get it.
>

ASP jscript:

thenames = thenames.replace(/,$/,'')

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!