Is there a way to know which pattern was used in this case. I mean sometime i can get input like "123<=456" sometime like "123>=456". My question is, is it posible to know if "<=" was the used pattern or ">="
Pattern pattern = Pattern.compile("(<=)|(>=)");
String x= "123<=456"; \\"123>=456"
String[] t = pattern.split(x);