Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| ' Visual Basic .NET Document | |
| Option Strict On | |
| ' <Snippet17> | |
| Imports System.Text.RegularExpressions | |
| Module Example | |
| Public Sub Main() | |
| Dim pattern As String = "\bb\w+\s" | |
| Dim input As String = "builder rob rabble" | |
| For Each match As Match In Regex.Matches(input, pattern, RegexOptions.RightToLeft) | |
| Console.WriteLine("'{0}' found at position {1}.", match.Value, match.Index) | |
| Next | |
| End Sub | |
| End Module | |
| ' The example displays the following output: | |
| ' 'builder ' found at position 0. | |
| ' </Snippet17> |