how to split a string with whitespace but ignore specific whitespace (that includes comma) in python
<p>I want split a string with whitespace but ignore specific whitespace (that includes comma).</p>

<p>Example: </p>

<pre><code>str = "abc de45+ Pas hfa, underak (333)"
</code></pre>

<p><strong>Required split</strong>:</p>

<pre><code>Item 1: abc
Item 2: de45+
Item 3: Pas hfa, underak
Item 4: (333)
</code></pre>

<p>You should split by <code>(?&lt;!,)\s</code>
Check here : <a href="https://regex101.com/r/9VXO49/1" rel="nofollow">https://regex101.com/r/9VXO49/1</a></p>

python regex