Ticket #163 (closed enhancement: fixed)
Inferring types related to System.Text.RegularExpressions
Reported by: | webnov8 | Owned by: | Chuck |
---|---|---|---|
Priority: | minor | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | cobra type inferrence regular expressions system.text.regularexpressions | Cc: |
Description
Currently when you try enumerating over a MatchCollection? the type returned is Object?
For e.g. let's say we wanted to find all occurrences of @param in a file...
str = '' # some string for match in Regex.Match(str, r'^\s*@param\s+(.*)$') # we expect a string to be located in the group identified by (.*) groups = match.groups # this will not work because match is of type Object?
Specifying the type works as expected as in...
for match as Match in Regex.Match(...)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.