cleanup, docs
This commit is contained in:
@@ -9,6 +9,7 @@ flags : optional regex flags
|
||||
return value : `true` when the entire subject matches the pattern
|
||||
|
||||
:see
|
||||
>string
|
||||
>regex
|
||||
regex_search
|
||||
regex_search_all
|
||||
@@ -23,11 +24,6 @@ This is a full-string match, not a substring search. Use `regex_search()` when y
|
||||
|
||||
Examples:
|
||||
|
||||
```uce
|
||||
regex_match("[A-Z][a-z]+", "Alice"); // true
|
||||
regex_match("[A-Z][a-z]+", "Alice!"); // false
|
||||
regex_match("\\d{4}-\\d{2}-\\d{2}", "2026-04-29");
|
||||
```
|
||||
|
||||
Supported flags:
|
||||
|
||||
@@ -41,3 +37,6 @@ Supported flags:
|
||||
UCE uses PCRE2 in UTF-8 + Unicode-property mode by default, so patterns such as `\\p{L}+` work naturally on Unicode text.
|
||||
|
||||
Invalid patterns or invalid flags raise a request-visible runtime error with the PCRE2 diagnostic message.
|
||||
|
||||
:example
|
||||
print(regex_match("^[a-z]+$", "docs") ? "match\n" : "no\n");
|
||||
|
||||
Reference in New Issue
Block a user