Regular Expression
A text pattern used to find, validate, or replace matching characters.
What is Regular Expression in C#?
Regular Expression — A text pattern used to find, validate, or replace matching characters.
using System.Text.RegularExpressions;
class OrderId
{
bool IsValid(string value)
{
return Regex.IsMatch(value, @"^ORD-\d{4} quot;);
}
}
Level: Journeyman · More C# terms at this level
Updated