cleanup, docs
This commit is contained in:
@@ -9,6 +9,7 @@ flags : optional regex flags
|
||||
return value : a list of string parts
|
||||
|
||||
:see
|
||||
>string
|
||||
>regex
|
||||
regex_match
|
||||
regex_search
|
||||
@@ -23,10 +24,6 @@ Splits `subject` wherever `pattern` matches.
|
||||
|
||||
Example:
|
||||
|
||||
```uce
|
||||
StringList tags = regex_split("\\s*,\\s*", "uce, components, markdown");
|
||||
print(join(tags, "\n"));
|
||||
```
|
||||
|
||||
This is the pattern-aware companion to `split()`.
|
||||
|
||||
@@ -36,3 +33,6 @@ Behavior notes:
|
||||
- Empty fields are preserved.
|
||||
- If the pattern does not match, the result contains the original subject as a single item.
|
||||
- Zero-length separators are handled safely to avoid infinite loops.
|
||||
|
||||
:example
|
||||
print(join(regex_split("\\s+", "uce docs api"), ","), "\n");
|
||||
|
||||
Reference in New Issue
Block a user