I'm working with l-systems and would like to know if it is possible to access regular expressions in vb.net components, like in the following example:
Dim StringToCheck As String = "EEOOAA"
Dim StringToFind As String = "A"
Dim exp As New Regex(StringToFind, RegexOptions.IgnoreCase)
Dim Occurrences As Integer = exp.Matches(StringToCheck).Count
This returns an error that Regex is not defined, but i cannot import, else i suppose i would just include the following:
I know my problem can be solved in other ways, but in the long run regular expressions could come in handy. Is there any way to access them?