MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / fullmatch

Function fullmatch

std/re/src/lib.rs:103–105  ·  view source on GitHub ↗
(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

Calls 2

rxFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected