I need to split a String using these possible tokens (<=,<,>=,>,==), by using a regex. Here are two examples of what I'm looking to achieve:
1.
Input: 123<=456
Result :[ 123, <=, 456]
2.
Input: 123<456
Result: [123, <, 456]
I wrote the following regex that works for the first example, but doesn't work for the second one. What's wrong with it?
Regex: ((?<=((<=)|(==)|(>=))|(?=((<=)|(==)|(>=))
