tvl-depot/doc/manual/expressions
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
..
advanced-attributes.xml use sha256 hashes in the examples 2017-07-15 21:06:30 +02:00
arguments-variables.xml Restructuring the Nix manual 2014-08-27 18:41:09 +02:00
build-script.xml Restructuring the Nix manual 2014-08-27 18:41:09 +02:00
builder-syntax.xml Restructuring the Nix manual 2014-08-27 18:41:09 +02:00
builtins.xml Add builtins.string function. 2017-08-15 20:04:11 +00:00
debug-build.xml Delete the stdenv section 2014-12-14 01:39:32 +01:00
derivations.xml Fix variable name typo in derivations doc 2017-05-28 15:48:57 +03:00
expression-language.xml Restructuring the Nix manual 2014-08-27 18:41:09 +02:00
expression-syntax.xml use sha256 hashes in the examples 2017-07-15 21:06:30 +02:00
generic-builder.xml Delete the stdenv section 2014-12-14 01:39:32 +01:00
language-constructs.xml doc: move set functor para to Sets section 2016-08-26 19:19:24 +02:00
language-operators.xml Restructuring the Nix manual 2014-08-27 18:41:09 +02:00
language-values.xml Document path-search behaviour 2016-12-11 17:13:37 +00:00
simple-building-testing.xml fix "nix-build" examples 2016-04-26 13:30:57 -07:00
simple-expression.xml Add section on SSH substituter 2014-12-14 03:19:15 +01:00
writing-nix-expressions.xml Delete the stdenv section 2014-12-14 01:39:32 +01:00