Returning the ordinal positions of regular expression matches in the original string
For fun, I am developing a utility that will take an input string and a regex and will highlight all regex matches in the original string, similar to the Find function in Firefox or IE 8, and some popular browsers.
I am using C #. Does any member of the System.Text.RegularExpressions namespace return the ordinal positions of the matches in the original string? I also need their length.
Is there a way to get this information?
+1
Water Cooler v2
a source
to share