I want code snippet for splitting the below string:
Input : select * from table where a=? and b=? and c=?
Output:
Str1: select * from table where a=?
Str2: and b=?
Str3: and c=?
I do not want to use indexof as of now, whether StringUtils or regex can help me here? I was looking for StringUtilus but I did not get anything in it. Your input is appreciated.