pub fn search_quote(pattern: &str) -> Result<Option<usize>, Error>
Expand description
Searchs a quote within a predefined list of chess-related quotes.
pattern: &str
: A case-insensitive regular expression
Returns a Result<Option<usize>, Box<dyn regex::Error>>
indicating the success or failure
of the search operation.