1

I am trying to use the follwing regex https://regex101.com/library/hsAqlt

<\/al>\s*(<a\X*)<al>

This works fine on the provided regex101 link/site, but visual studio is giving me the following error:

Regex issue: Unrecognized escape sequence \X

Does anyone know why this is and/or know an alternative way of achieving my goal.

Some extra info, I am using/have installed:

  • Visual Studio 22, 17.0.1
  • .Net 6.0
  • C# 10
  • System.Text.RegularExpressions;

0 Answers0