I've been working with Regex and I've run into something that doesn't make sense to me; I either misunderstood how the Multiline option works, I'm not using it right, or it really just doesn't work like it's supposed to. This is a little test I made:

vb.net Code:
  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.     Dim TestString As String = "test" & vbNewLine & "sweet"
  3.     Dim TestRegex As String = "^[a-z]*$"
  4.     Dim ResultsString As String = String.Empty
  5.     For Each StringMatch In System.Text.RegularExpressions.Regex.Matches(TestString, TestRegex, _
  6.                                                                              System.Text.RegularExpressions.RegexOptions.Multiline)
  7.         ResultsString &= StringMatch
  8.     Next
  9.  
  10.     Console.WriteLine(resultsstring)
  11. End Sub

The problem is, the only match that is found is the last line (in this case "sweet"). Why is this?