I have a string: strString = first,last,,4443334444
I want to use regular expression to split this string into an array.
I'm using this regular expression [\""].+?[\""]|[^,]+
but it is ignoring the space after the word last.
So, my array is looking something like this:
[0] => first
[1] => last
[2] => 4443334444
instead of:
[0] => first
[1] => last
[2] =>
[3] => 4443334444
I would like to keep the space.
Any help would be appreciated.