String manipulations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey all,

Let's say I have a string with a value ("Let's go to Florida")
If I wanted to capture whatever value comes after the word to, how would I
do that?

thanks in advance,
rodchar
 
Hey all,

Let's say I have a string with a value ("Let's go to Florida")
If I wanted to capture whatever value comes after the word to, how
would I do that?


You can use regular expressions.

Or if you know the first part of the sentence, you can use the function
Left and Right.
 
thank you, this helped.

Lucas Tam said:
You can use regular expressions.

Or if you know the first part of the sentence, you can use the function
Left and Right.
 
Hi Rodchar,
Let's say I have a string with a value ("Let's go to Florida")

Yes let us all visit Ken.

And as answer therefore is that famous method in most program languages now.

dim Ken as string = "Let's go to Florida".substring("Let's go to
Forida".indexof(" to "))

I hope this helps?

Cor
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Part2 csv to xml 2
string formatting 5
finding a word in a string 4
date question 2
delimited string test 3
property name 4
only letters or numbers 3
from db to textbox 10

Back
Top