Pattern::find_in
fn find_in(P pat, string hay, int from) -> Option<Span> Import
Source: use text::{Pattern}; src/text.hy Returns the span of the leftmost match in hay at or after byte from.
Parameters#
| Name | Type |
|---|---|
pat | P |
hay | string |
from | int |
Returns#
Option<Span>
See also#
Pattern: Something a [Searchable] value can be searched for: a plainstring(matched literally), or a type such as coil-regex’sRegex.Pattern::is_prefix_of: Returnstruewhen a match starts at the beginning ofhay.Pattern::is_suffix_of: Returnstruewhen a match ends at the end ofhay.Pattern::expand: Returns the replacement text for the matchfind_injust returned.