Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| // <Snippet17> | |
| using System; | |
| using System.Text.RegularExpressions; | |
| public class Example | |
| { | |
| public static void Main() | |
| { | |
| string pattern = @"\bb\w+\s"; | |
| string input = "builder rob rabble"; | |
| foreach (Match match in Regex.Matches(input, pattern, RegexOptions.RightToLeft)) | |
| Console.WriteLine("'{0}' found at position {1}.", match.Value, match.Index); | |
| } | |
| } | |
| // The example displays the following output: | |
| // 'builder ' found at position 0. | |
| // </Snippet17> |