How to use comma and dot as delimiter in addition with Java default delimiter
<p>I have a text file which contains lot of permutations and combinations of special characters, white space and data.
I am storing the content of this file into an array list, and if i am not using <code>useDelimiter()</code> function, Java is reading my text perfectly.</p>

<p>The only issue is that its not accepting <em>comma</em> (<code>,</code>) and <em>dot</em> (<code>.</code>) as delimiter.</p>

<p>I know I can use <code>input.useDelimiter(",|.| |\n")</code> to use <em>comma</em> , <em>dot</em>, <em>space</em> as delimiter and others options as well, but then the results I get are not correct as java gives me now.</p>

<p>Is there a way to instruct java to use <em>comma</em> and <em>dot</em> as delimiters along with whatever default delimiter it uses?</p>

<p>Thanks in advance for your help :)</p>

<p>Regards,
Rahul</p>