troubleshooting Question

searching for a word in a string

Avatar of 1dev1
1dev1 asked on
7 Comments1 Solution214 ViewsLast Modified:
i have a string and i want to search it to see if it contains a certain word and then get the word after it.  is anyone abe to show me how i do this

String aaa = "This string has an id 1234"

I want to see if the 'id' word exists and then get the '1234' value

The value won't always be 4 digits, sometimes more, sometimes less

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros