Searches the conversation history for a message or response that matches the specified text.
If a matching message is found, the method returns the unique message identifier for the message. If no message prompts and/or responses match the search pattern, the method returns zero.
The pattern you are matching against must be a null-terminated string and it cannot consist of only whitespace characters (spaces, tabs, carriage returns and linefeeds).
If a regular expression pattern is specified, the method compiles the pattern and searches the message content for a match. The regular expression matching uses a simplified version which only supports anchors, wildcards, match classes (enclosed in brackets) and a limited number of escape sequences such as \d to match any digit or \s to match any space character. It does not support grouping or replacement.
The GetMessage method can be used to obtain the contents of the prompt and/or response for a matching message.