Hello Guys,
If I have a string "Registration 00DL5876 Make" is there a way to match the first word and the last ("Registration" & "Make") and than pass the substring "00DL5876" to seperate string ? how about "Primera SR 2.0 D Colour" if i want "SR 2.0 D" ? I dont even know how where to start.
Michal_2
0
Newbie Poster
Recommended Answers
Jump to PostbeginsWith and endsWith.
or, you can use the split method, with space as separator and keep all the elements of the returning array, but discard the first and the last one
All 3 Replies
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Seldar
9
Newbie Poster
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.