Using system. Text. regularexpressions;
Namespace DOTNET. Utilities
{
/// <Summary>
/// Operate the public class of the Regular Expression
/// </Summary>
Public class regexhelper
{
# Region verify that the input string matches the pattern string
/// <Summary>
/// Verify whether the input string matches the pattern string. If yes, true is returned.
/// </Summary>
/// <Param name = "input"> input string </param>
/// <Param name = "pattern"> mode string </param>
Public static bool ismatch (string input, string pattern)
{
Return ismatch (input, pattern, regexoptions. ignorecase );
}
/// <Summary>
/// Verify whether the input string matches the pattern string. If yes, true is returned.
/// </Summary>
/// <Param name = "input"> input string </param>
/// <Param name = "pattern"> mode string </param>
/// <Param name = "options"> filter conditions </param>
Public static bool ismatch (string input, string pattern, regexoptions options)
{
Return RegEx. ismatch (input, pattern, options );
}
# Endregion
}
}
Regexhelper (regular expression)