Files
nix/tests/lang
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
..
2014-10-03 22:32:11 +02:00
2014-09-22 16:05:00 +02:00
2017-07-18 08:04:01 -04:00
2014-09-22 16:05:00 +02:00
2015-07-23 19:23:11 +02:00
2015-07-23 19:23:11 +02:00
2011-07-06 10:58:53 +00:00
2011-07-06 10:58:53 +00:00
2016-02-15 15:01:26 +01:00
2016-11-13 17:20:34 +01:00
2016-11-13 17:20:34 +01:00
2014-10-18 20:34:48 -04:00
2014-09-22 16:05:00 +02:00
2014-09-22 16:05:00 +02:00
2013-12-31 20:59:49 +00:00
2013-12-31 20:59:49 +00:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2015-11-04 16:37:49 +01:00
2015-11-04 16:37:49 +01:00
2014-05-29 19:04:27 +02:00
2014-09-22 16:05:00 +02:00
2014-09-22 16:05:00 +02:00
2015-07-28 18:39:39 +02:00
2015-07-28 18:39:39 +02:00
2010-05-07 14:46:47 +00:00
2010-05-07 14:46:47 +00:00
2010-05-07 14:46:47 +00:00
2010-03-23 14:51:32 +00:00
2014-05-26 14:26:29 +02:00
2014-05-26 14:26:29 +02:00
2015-07-28 17:28:35 +02:00