public static string ChecknReplace(string ingredientsText) { string pattern = @"(\d{1}\\\d{1})"; string[] fractions = {"/"}; var matches = Regex.Matches(pattern, ingredientsText); foreach(Match match in matches) { } }
Regex regex = new Regex(@"(\d+)/(\d+)"); string result = regex.Replace(InputText,"frac $1 $2 ");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)