We help IT Professionals succeed at work.
Get Started

VB6 - A quick/correct way to get specific text from a string?

281 Views
Last Modified: 2013-11-25
Hello, I am with this string, as an example:

<Ttest> This is a test, so you should know this is just a test area. We test thing here. This can be a very long description, and other things like that. Mike, John, Luke, Paul, Buzz, and Test are here with you. There is a staff on the floor.

What I want to do is grab the line of 'users' in the current room. So I'd like to extract "Mike, John, Luke, Paul, Buzz, and Test are here with you." from the line above.

Issue is, I'm not sure how to exactly do it. What I was thinking is checking are here with you. first, then going back via " ," (space then ,) until there is none left or " ," occurs in more then one word from the last " ,".. But this seems wierd/difficult to do.

I know theres not a 100% way to do this, but theres probably a good way that I am not sure about.. Thanks!
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 2 Answers and 13 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE