MCPcopy Index your code
hub / github.com/processing/processing / match

Method match

core/src/processing/core/PApplet.java:9309–9321  ·  view source on GitHub ↗

( begin auto-generated from match.xml ) The match() function is used to apply a regular expression to a piece of text, and return matching groups (elements found inside parentheses) as a String array. No match will return null. If no groups are specified in the regexp, but the sequence matches, an

(String str, String regexp)

Source from the content-addressed store, hash-verified

9307 * @see PApplet#trim(String)
9308 */
9309 static public String[] match(String str, String regexp) {
9310 Pattern p = matchPattern(regexp);
9311 Matcher m = p.matcher(str);
9312 if (m.find()) {
9313 int count = m.groupCount() + 1;
9314 String[] groups = new String[count];
9315 for (int i = 0; i < count; i++) {
9316 groups[i] = m.group(i);
9317 }
9318 return groups;
9319 }
9320 return null;
9321 }
9322
9323
9324 /**

Callers 9

getShaderTypeMethod · 0.95
PShapeSVGMethod · 0.95
parseSingleTransformMethod · 0.95
matchRowIndexMethod · 0.95
matchRowIndicesMethod · 0.95
findURLMethod · 0.95
compileMethod · 0.95
preprocessMethod · 0.95
matchDensityMessMethod · 0.95

Calls 2

matchPatternMethod · 0.95
findMethod · 0.80

Tested by

no test coverage detected