pub fn search(haystack: String, regex: String) -> Result<i64>
JavaScript-like search(regex) using UTF-16 code-unit indices, given Rust string as input.
search(regex)
Returns the first match index, or -1 if not found.
-1