Function
fullmatch
(pattern: String, string: String)
Source from the content-addressed store, hash-verified
| 101 | /* fullmatch: the pattern must consume the whole string. */ |
| 102 | #[plugin_fn] |
| 103 | fn fullmatch(pattern: String, string: String) -> Result<Option<String>> { |
| 104 | Ok(rx(main::find(&pattern, &string, Mode::Full))?.map(|f| f.text)) |
| 105 | } |
| 106 | |
| 107 | /* findall: list of matches, group shaped like CPython for zero or one group. */ |
| 108 | #[plugin_fn] |
Callers
nothing calls this directly
Tested by
no test coverage detected