I have a string with markup in it which I need to find using Java.
eg.
string = abc<B>def</B>ghi<B>j</B>kl desired output.. segment [n] = start, end segment [1] = 4, 6 segment [2] = 10, 10
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Regular expressions should work wonderfully for this.
Refer to your JavaDoc for
Note: StringTokenizer is not what you want since it splits around characters, not strings – the string delim is a list of characters, any one of which will split. It’s good for the very simple cases like an unambiguous comma separated list.