P
papa.coen
Hi,
I need to split/match the following type of (singleline) syntax on all
commas (or text in between) that are not between qoutes:
A,'B,B',C,,'E',F
The text between quotes can be _any_ text ( except for newlines).
the regexp must either match : A | 'B,B' | C | [empty] | 'E' | F
(pipeline serves as separator here) or split on the first,third and the
rest of the comma's.
I can't get it done, I can't figure out how to exclude s'thing from an
expression except for single characters.
I've tried serveral options but all of them fail on 1 or more of the
following cases:
- 'A' only
- B only.
or do not catch the last item (F)
BTW whats the reason for most regexp testing apps that they do not
support/offer split functionality. Should I only use matching?
I need to split/match the following type of (singleline) syntax on all
commas (or text in between) that are not between qoutes:
A,'B,B',C,,'E',F
The text between quotes can be _any_ text ( except for newlines).
the regexp must either match : A | 'B,B' | C | [empty] | 'E' | F
(pipeline serves as separator here) or split on the first,third and the
rest of the comma's.
I can't get it done, I can't figure out how to exclude s'thing from an
expression except for single characters.
I've tried serveral options but all of them fail on 1 or more of the
following cases:
- 'A' only
- B only.
or do not catch the last item (F)
BTW whats the reason for most regexp testing apps that they do not
support/offer split functionality. Should I only use matching?