title: Regular expression construct for arbitrary string or number of characters in java
body: <p>I am trying to split data from a .csv file, however, some of the fields/columns also contain commas in between just like this</p>
  <pre class="lang-none prettyprint-override"><code>ABCKS,&quot;ASK,ED&quot;,&quot;SDR,ED&quot;,2022-07-11,8011.0
  cvbgb,&quot;hfhvnf,rgr&quot;,&quot;dthd,chdf&quot;,2022-07-11,111.9
  ABCKS,&quot;ASK,ED&quot;,&quot;SDR,ED&quot;,2022-07-11,8011.0
  </code></pre>
  <p>hence, the .split(&quot;,&quot;) string method would create additional fields into the data.</p>
  <p>I have tried</p>
  <pre><code>if (aLine.contains(&quot;\&quot;|,|\&quot;&quot;)){
  
      String newString = aLine.replaceAll(&quot;\&quot;|,|\&quot;&quot;,&quot;|_|&quot;).replaceAll(&quot;\&quot;&quot;, &quot;&quot;);
      aList = Arrays.asList(newString.split(&quot;,&quot;, -1));
  
  }
  </code></pre>
  <p>It does not seem to work.</p>