Skip to Content
1
Former Member
Jun 12, 2020 at 08:24 AM

Split String at Seperator Unless it is inside a Literal

90 Views

Hey everyone, i would like to split an Input String at a seperator, SPACE for example. But i want everything in string literals (with |pipe| and 'comma' if possible) to be left alone. Example:

|This is a 'test string' for testing|

Should become a table like

[ |this|, |is|, |a|, |'test string'|, |for|, |testing| ]

Is this possible to achieve with a regex maybe?