By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,163 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

String manipulations

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"=?Utf-8?B?cm9kY2hhcg==?=" <ro*****@discussions.microsoft.com> wrote in
news:94**********************************@microsof t.com:
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.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2

P: n/a
thank you, this helped.

"Lucas Tam" wrote:
"=?Utf-8?B?cm9kY2hhcg==?=" <ro*****@discussions.microsoft.com> wrote in
news:94**********************************@microsof t.com:
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.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 21 '05 #3

P: n/a
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

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.