how can i find the first word in my sentence having 'w' character. This character can be present anywhere in my word. Lets take an example of sentence "Hi, what are you doing here abxwxyz?
So the result should be what.
gunjan_29
0
Newbie Poster
Recommended Answers
Jump to PostI am assuming you mean the first word that starts with 'w'.
If its a structural sentence, then find the first 'w' Then check if the character before it is a space. If so then its what you are looking for. Be sure to watch out, if w is …
Jump to PostRead each word. Search for 'w' in the word. Pretty simple.
All 6 Replies
mrnutty
761
Senior Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
gunjan_29
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
gunjan_29
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.