Some useful Regex examples
Check if a value starts with a number:
@using System.Text.RegularExpressions string patternStartsWithNumber = @"^(?:[0-9])"; @if (!vacancy.VacancySalary.IsNullOrWhiteSpace() && Regex.Match(vacancy.VacancySalary, patternStartsWithNumber).Success) { }
Last updated 3 years ago