Is there a way to know what pattern was used? : <p>Is there a way to know which pattern was used in this case. I mean sometime i can get input like "123&lt;=456" sometime like "123>=456". My question is, is it posible to know if "&lt;=" was the used pattern or ">=" </p>

<pre><code>Pattern pattern = Pattern.compile("(&lt;=)|(&gt;=)");
String x= "123&lt;=456"; \\"123&gt;=456"
String[] t = pattern.split(x);
</code></pre>
