I need a regex that will only find matches where the entire string matches my query.
For instance if I do a search for movies with the name \"Red October\" I only wa
Use the ^ and $ modifiers to denote where the regex pattern sits relative to the start and end of the string:
^
$
Regex.Match("Red October", "^Red October$"); // pass Regex.Match("The Hunt for Red October", "^Red October$"); // fail