Files
nix/tests
Nicolas B. Pierron b8867a0239 Add builtins.string function.
The function 'builtins.split' takes a POSIX extended regular expression
and an arbitrary string. It returns a list of non-matching substring
interleaved by lists of matched groups of the regular expression.

```nix
with builtins;
assert split "(a)b" "abc"      == [ "" [ "a" ] "c" ];
assert split "([ac])" "abc"    == [ "" [ "a" ] "b" [ "c" ] "" ];
assert split "(a)|(c)" "abc"   == [ "" [ "a" null ] "b" [ null "c" ] "" ];
assert split "([[:upper:]]+)" "  FOO   "
                               == [ "  " [ "FOO" ] "   " ];
```
2017-08-15 20:04:11 +00:00
..
2017-08-15 20:04:11 +00:00
2014-08-21 21:50:19 +02:00
2017-05-02 15:46:10 +02:00
2017-05-02 12:07:56 +02:00
2014-08-21 21:50:19 +02:00
2016-08-10 18:05:35 +02:00
2014-08-21 21:50:19 +02:00
2015-11-04 16:37:49 +01:00
2014-08-21 21:50:19 +02:00
2016-09-12 13:40:07 +02:00
2014-02-26 18:00:46 +01:00
2006-07-21 13:21:43 +00:00
2017-07-04 15:07:41 +02:00
2016-08-10 18:05:35 +02:00
2014-08-21 21:50:19 +02:00
2016-04-25 19:18:45 +02:00
2014-08-21 21:50:19 +02:00
2016-08-10 11:13:11 -04:00
2017-02-24 17:29:02 +01:00
2017-02-07 15:56:32 -05:00
2016-08-10 18:05:35 +02:00
2016-08-10 18:05:35 +02:00
2016-04-11 16:20:15 +02:00
2017-05-29 16:14:10 +02:00
2017-04-25 18:59:18 +02:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2016-09-08 18:22:28 +02:00
2012-12-04 14:47:50 +01:00
2012-12-04 14:47:50 +01:00
2016-08-10 18:05:35 +02:00