Shubham Gangrade

Shubham Gangrade

  • NA
  • 73
  • 19.4k

how to create Regex for string which start with << and end with >>

Aug 27 2020 4:27 AM
Hi,
I am usng MVC dot net C# . i need to create a regex for string which start with << and end with >>.
between these angular bracetes anything can be possible string, numeric character, special character, space.
I created one 
System.Text.RegularExpressions.Regex expr = new System.Text.RegularExpressions.Regex(@"<<[\w\s\#\:\,\|]+\>>");
 
but it is not fetching all the tokens. 

Answers (2)