I need to split the word after this symbol “-”
Eg:-Bad(-) need to get output as Bad(-)
Maybe other String methods do better match the case
Besides Peter’s method, you also use regular expression to extract the required string instead of splitting string. You can visit the following website to try regular expression pattern.
It will be more helpful if you post sample input string here.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.