refactor: rename DTree to DValue
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
:sig
|
||||
DTree regex_search(String pattern, String subject)
|
||||
DTree regex_search(String pattern, String subject, String flags)
|
||||
DValue regex_search(String pattern, String subject)
|
||||
DValue regex_search(String pattern, String subject, String flags)
|
||||
|
||||
:params
|
||||
pattern : PCRE2 regular expression pattern
|
||||
subject : string to search
|
||||
flags : optional regex flags
|
||||
return value : a DTree describing the first match
|
||||
return value : a DValue describing the first match
|
||||
|
||||
:see
|
||||
>regex
|
||||
@@ -14,7 +14,7 @@ regex_match
|
||||
regex_search_all
|
||||
regex_replace
|
||||
regex_split
|
||||
0_DTree
|
||||
0_DValue
|
||||
|
||||
:content
|
||||
Searches `subject` for the first occurrence of `pattern` and returns structured match data.
|
||||
@@ -22,7 +22,7 @@ Searches `subject` for the first occurrence of `pattern` and returns structured
|
||||
Example:
|
||||
|
||||
```uce
|
||||
DTree match = regex_search(
|
||||
DValue match = regex_search(
|
||||
"(?<user>[A-Za-z0-9._%+-]+)@(?<host>[A-Za-z0-9.-]+)",
|
||||
"Contact ops@example.test"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user