I want to create an extension function which will split a string to an array with a format. Example:
Pattern should like this:
[1, 1895, "usd", 123000, 1234, nil]
I am trying to split with regex but I don't know how to return multiple values.