Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 539 Bytes
' 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>