Kindly note the difference between Match and Matches function
You used Match and therefore only the first Match is catched
When using Matches all found Matches will be kept
Also have a look above at:
- the Linked CheatSheet - listing it
- the group approach where both parts are retrived and can be assigned to variables
also have a look here:
we usewd the regexoption.Multiline and get all
And here were can catch all in a string array separated list
System.Text.RegularExpressions.Regex.Matches(strText,strPattern, RegexOptions.Multiline).Cast(Of Match).Select(Function (m) {m.groups(1).Value,m.groups(2).Value}).ToList