Java - How to identify what is the most frequently used delimiter
<p>I have a string :</p>

<p>www.domain.com/I-Need-This-Part</p>

<p>I need to detect what the most frequently used delimiter is after the / which in this case is - . The delimiter may change depending on the url.</p>

<p>Once I working this out, I will use .split and pass in the most frequently used delimiter to count the parts.</p>

<p>Any help on this would be much appreciated.</p>

<p>Thank you in advance.</p>
