I have a simple question.
I want to select one or more characters(starting and ending phrase) that is not intersect with a particular word.
Eg : I want select 1234, efghijabcklmn from the next text.
String now = "abcd";
String next = "1234abcdefghijabcklmn";
I tried ^abcd, ^(abcd), [^a][^b][^c][^d] nothing works. I know this can be done by splitting and tokenizing. but i want it through regex.
Well,
String#split(regex)takes aregexas parameter only. So, why not use it, given that this problem is an ideal candidate of splitting.