I have the sudden need to split a text that may have any of the
following tokens :
Words with quotes or double quotes.
Words with no quotes at all.
Numbers with and without decimal points, no commas allowed, but may
contain parenthesis which I would like to keep apart to drop later.
They may be separated by comas, spaces or semicolon.
So my string my have this content :
ProductNumber; (1234.44), "The Name", 'This, that and more'
And I would be willing to get this strings :
ProductNumber
;
(
1234.44
)
,
"The Name"
,
'This, that and more'
I have two days days with this with no luck. I've tried several
combinations and I either get one functionality working or drop
another.
Thanks in advance for your help.
following tokens :
Words with quotes or double quotes.
Words with no quotes at all.
Numbers with and without decimal points, no commas allowed, but may
contain parenthesis which I would like to keep apart to drop later.
They may be separated by comas, spaces or semicolon.
So my string my have this content :
ProductNumber; (1234.44), "The Name", 'This, that and more'
And I would be willing to get this strings :
ProductNumber
;
(
1234.44
)
,
"The Name"
,
'This, that and more'
I have two days days with this with no luck. I've tried several
combinations and I either get one functionality working or drop
another.
Thanks in advance for your help.
Comment