Reges is not getting the information

grafik
grafik

 strPattern
 "(Actual |Before )Date: \d+\-[A-Z]{3}-[\d\ \:]{8}"
 myMatches = regex.Matches(strText, strPattern)
 MatchCollection(2) { [Actual Date: 27-DEC-21 07:00], [Before Date: 27-DEC-21 07:00] }
 myMatches(0).Value
 "Actual Date: 27-DEC-21 07:00"
 myMatches(1).Value
 "Before Date: 27-DEC-21 07:00"
 myMatches.Cast(Of Match).Select(Function (m) m.Value).toArray
 string[2] { "Actual Date: 27-DEC-21 07:00", "Before Date: 27-DEC-21 07:00" }

maybe you can share with us your current implementation e.g. as a screenshot

2 Likes