Asp.Net 5(Core 1.0) Class Library System.Text.RegularExpression

Question:

How to use System.Text.RegularExpression namespace in Asp.Net 5, I have a project and I went to update it to ASP.NET 5, my problem was that I can't use Regular Expressions in it and I can't reference the namespace in question.

Answer:

I found this issue in the beta issues yet and it was resolved by adding the "System.Text.RegularExpressions" dependency in project.json.

As I understand it, Regex is now a library isolated from System.Text

Source: https://github.com/dotnet/coreclr/issues/1454

Scroll to Top
AllEscort