search_j

Function search_j 

Source
pub fn search_j(haystack: JsString, regex: &JsRegExp) -> Result<i64>
Expand description

JavaScript-like search(regex) using UTF-16 code-unit indices.

Returns the first match index, or -1 if not found.