How can I replace first as well as last "," in a string?

Mystring = ",3,2,5,6,1,65,22,"

I would like
CorrectedString = "3,2,5,6,1,65,22"

I would like to replace commas on each sides with "".
I am new to asp and would be grateful for your help.
Thanks in advance.

Re: How to replace first and last "," in a string in asp vbscript? by Ray

Ray
Tue Jul 15 16:12:58 CDT 2003

See here AGAIN.
http://www.aspfaq.com/5003

Then see asp.general.

Ray at work

"Learning" <question_asp@yahoo.com> wrote in message
news:99a92f8.0307151247.352c318b@posting.google.com...
> How can I replace first as well as last "," in a string?
>
> Mystring = ",3,2,5,6,1,65,22,"
>
> I would like
> CorrectedString = "3,2,5,6,1,65,22"
>
> I would like to replace commas on each sides with "".
> I am new to asp and would be grateful for your help.
> Thanks in advance.