Can you invert your regex so split by the non operation characters? String ops[] = string.split("[a-z]") // ops == [+, -, *, /, , >=,
stackoverflow.com