-2

I have strings like the following and I need to split the string for this array. Delimiter is space, when undefined value display ? without quote. When ? is part of data enclosed with "" (e.g. "Data2 ?" is part of data) Pease help me with the right regular expression

-10.99 $12.99 6 "Data1" "Data 2?" ? ? 02/01/21

Output
-10.99
$12.99
6
Data1
Data 2?
?
?
02/12/21

knittl
  • 216,605
  • 51
  • 293
  • 340

0 Answers0