Home Notices Documents Classes Download Others Rice
Classes  >  regex  >  MatchesM(string)
regex class : MatchesM(string) method

Description

Gets a list of instances of the match class representing a substring that matches the regular expression.

Syntax

regexInstance.MatchesM(string source)

Arguments

ClassNameDescription
stringsourceA string which is searched.

Return value

ClassDescription
list{match}A list of instances of the match class representing a substring that matches the regular expression.

Sample code

1:

regex pattern = new regex("(a+)");

2:

list{match} matches = pattern.MatchesM("aaabbbaaccc"); // A list of instances of the match class representing "aaa" and "aa".

Notes

It's a wrapper of the System.Text.RegularExpressions.Regex.MatchesM(String).

If no match is found, return value is an empty list.


This method has been added in Rtype.Regex.dll Ver 1.0.0.1.

Links for reference

Copyright © Rice All rights reserved.