Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to split a string that has double quotes on it 1

Status
Not open for further replies.

ASPnetNovice

Programmer
Apr 28, 2005
19
US
Hello

I have the following problem

I have a string that looks like this:

myString = "bla bla bla" some other text "bla bla bla"

I need to split the string in such a way that the delimiter is the double quotes

I have try something like the following :
myString.Split("/"")

but it doesn't work

How can this be done?
 
First try the other slash (e.g. myString.Split("\"") ) and if that doesn't work, then try the ascii code for the double quotes (chr(34)).

Code:
myString.Split("\"")

or 

myString.Split(chr(34))

Haven't tested but it should at least get you started.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top