Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 905057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:09:09+00:00 2026-05-15T16:09:09+00:00

I use the split function of in VBScript to split the string. Below is

  • 0

I use the split function of in VBScript to split the string. Below is the code am using.

Dim inputText
DIM resultArray 

inputText = "abc; def; ""xyz;123"""
resultArray = Split(inputText, "; ")

For i = 0 To UBound(resultArray)
    resultArray(i) = Replace(resultArray(i), """", "")          
    resultArray(i) = Replace(resultArray(i), ";", "")
    IF i = UBound(resultArray) THEN
        Response.Write resultArray(i)
    ELSE
        Response.Write resultArray(i) & "; "
    END IF
Next

If i remove the space after ; in split function it will also split “xyz:123” which i don’t want to be.

Either i gave space after ; in split function (Line # 4) or not it shouldn’t split the “xyz:123” which comes in double quotes.

Any suggestion how i can achieve this ?

Thanks in advance.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:09:10+00:00Added an answer on May 15, 2026 at 4:09 pm

    That suspiciously looks like a csv-file. You could try using ADO for this. Microsoft has a fairly extensive (and very useful) article on this: http://msdn.microsoft.com/en-us/library/ms974559.aspx

    Since they describe exactly your problem, I think that just might be your solution. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the Split function on a string but keep the delimiting
I am learning the sample code from split function . Sample code. #!C:\Perl\bin\perl.exe use
How do I use the split function to split by \.? For example, first
Can someone help me with the correct use of the split function in perl
I have a class I use to split a string of SQL commands by
I want to use regex to split some string like this @key='value' to key
Can split(string, array, separator) in awk use sequence of whitespaces as the separator (or
I use the regex [,;\s]+ to split a comma, space, or semicolon separated string.
I need to write a split function in JavaScript that splits a string into
Okay, so I have this string, it's x/y. How can I use the split

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.