#1
  1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Oct 2007
    Posts
    178
    Rep Power
    16

    Split String based on Two Delimiters


    I have a string notsengine = "111,555(888"

    I want to split this into an array so it reads

    111
    555
    888

    I am using this code to split by comma, but how do I get it to split by the bracket aswell ?

    engineArray = Split(notsengine,",")

    Thank You.
  2. #2
  3. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Mar 2005
    Location
    Columbus, OH
    Posts
    1,594
    Rep Power
    278
    like that
    engineArray = Split(Split(notsengine,","),")")
    GK
    __________________________________________________ _____
    if you found this post is useful click Give Rep button (bottom side on this reply ) and agree
  4. #3
  5. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0
    you can write
    engineArray = Split(replace(notsengine,"(",","),",")
    ...
    bye

Similar Threads

  1. Split string
    By cutepraba in forum ASP Development
    Replies: 3
    Last Post: October 8th, 2008, 06:46 AM
  2. Without using split function hw can i split my string
    By swetareddy123 in forum ASP Development
    Replies: 2
    Last Post: August 18th, 2008, 08:08 AM
  3. Long string in string desc need to split
    By Zath in forum ASP Development
    Replies: 4
    Last Post: January 8th, 2008, 01:15 PM
  4. Split Function - Determine the point in which the string was split.
    By LozWare in forum Visual Basic Programming
    Replies: 2
    Last Post: May 15th, 2006, 04:59 AM
  5. Split URL String
    By bree in forum Visual Basic Programming
    Replies: 1
    Last Post: September 25th, 2005, 07:57 PM

IMN logo majestic logo threadwatch logo seochat tools logo