I am running the following regular expression
Regex.Match(x, "<([^\s]+)")
but \s shows an error "Unrecogonised escape sequence" If I do this
Regex.Match(x, @"<([^\s]+)")
It still wont work.
I want to find a sequence of character that starts with < then any character until a space is found or > is found.
Edit:
I am editing this incase someone finds it and wants to know the solution. This was back when I was still learning Regex and no one had told me about escaping my characters. All that was needed was a double backslash to escape the special character.