How to replace first and last "," in a string in asp vbscript?

Discussion in 'ASP General' started by MDW, Jul 15, 2003.

  1. MDW

    MDW Guest

    Mystring = Left(Mystring,Len(Mystring) - 1)
    Mystring = Mid(Mystring,2)

    That should do it.

    >-----Original Message-----
    >How can I replace first as well as last "," in a string?
    >
    >Mystring = ",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.
    >.
    >
    MDW, Jul 15, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Registered User

    Find first occurrence of string and replace

    Registered User, Oct 16, 2006, in forum: C Programming
    Replies:
    6
    Views:
    466
    Ed Collins
    Oct 18, 2006
  2. Johny
    Replies:
    8
    Views:
    390
  3. Alun
    Replies:
    3
    Views:
    4,505
    Masudur
    Feb 18, 2008
  4. Simon Strandgaard

    [rcr] String#first / String#last

    Simon Strandgaard, Oct 24, 2004, in forum: Ruby
    Replies:
    29
    Views:
    236
    Brian Candler
    Oct 26, 2004
  5. Replies:
    7
    Views:
    365
    John W. Krahn
    Nov 13, 2007
Loading...

Share This Page