Parameters: indices - a Collection of indices Returns: a String of the values at the given indices Since: 1.6.0įinds the number of Strings matched to the given Matcher. Parameters: index - an index Returns: object a matched String if no groups matched, list of matched groups otherwise. matcher, for a Matcher.Īssert 2 = m.size() // synonym for m.getCount()ĭef matches =, ,, ]ĭef m = "abcabdabeabfabxyzabx" =~ /(?:ab(+))/ĭef matches =, , ] ObjectĪddShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withStream, withTraitsĬoerces a Matcher instance to a boolean value. Methods inherited from class java.lang.Provides the standard Groovy size() method for Matcher. Sets the position of the given Matcher to the given index. The string matches the pattern or if a longer string, could match the pattern. Given a matcher that matches a string against a pattern, returns true when Returns an Iterator which traverses each match. Get the last hidden matcher that the system used to do a match.Ĭhecks whether a Matcher contains a group or not. Selects a List of values from a Matcher using a Collectionįinds the number of Strings matched to the given Matcher. Coerces a Matcher instance to a boolean value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |