title: Need Java regular expression
body: <p>I need a regular expression which should parse string with white space and if white space exists in a string which ended with quotes (single/double) then it should not parse.</p>
  
  <pre><code>abc cde 'efg hij'k lmn'opq rst' 'ijk lmn' u'v'w xyz 'abc' \'\\\\\'  \'_Notes.txt\'
  </code></pre>
  
  <p>Requirement O/P:</p>
  
  <pre><code>abc
  cde
  'efg hij'k
  lmn'opq rst'
  'ijk lmn'
  u'v'w 
  xyz
  'abc'
  \'\\\\\'
  \'_Notes.txt\'
  </code></pre>
  
  <p>I used below pattern for my requirement but this parsing like below</p>
  
  <pre><code>Pattern p = Pattern.compile("[^\\s\"']+|\"([^\"]*)\"|'([^']*)'");
  </code></pre>
  
  <p>O/P:</p>
  
  <pre><code>abc
  cde
  'efg hij'         //here k is missing
  lmn'opq
  rst'
  'ijk lmn'
  u'v'w 
  xyz
  'abc'
  '\\'   //here original string is \'\\\\\'
  '_Notes.txt' //here origina string \'_Notes.txt\'
  </code></pre>