jmespath.site icon indicating copy to clipboard operation
jmespath.site copied to clipboard

New function: `array[string] split(string $separator, string $subject)`

Open biochimia opened this issue 8 years ago • 2 comments

I propose the addition of a split() function, counterpart to the already standard join() function. split breaks a string into an array of substrings that are separated by $separator in the original $subject.

(Not entirely unlike Python's string.split() function)

biochimia avatar May 14 '17 22:05 biochimia

Perhaps issue opened in wrong repo

morokin avatar Apr 04 '18 09:04 morokin

BTW: the python implementation README states this repository is the place for extension proposals: https://github.com/jmespath/jmespath.py#custom-functions (dont know about other implementation's repos)

henning avatar Jan 29 '20 16:01 henning