BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.util.RegExpUtil Class Reference

Static Public Member Functions

static String getValue (String text, String regExp, int group)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Deprecated:
Use Strings instead

Definition at line 29 of file RegExpUtil.java.

Member Function Documentation

◆ getValue()

static String org.turro.elephant.impl.util.RegExpUtil.getValue ( String  text,
String  regExp,
int  group 
)
static

Definition at line 31 of file RegExpUtil.java.

31  {
32  Pattern pat = Pattern.compile(regExp);
33  Matcher mat = pat.matcher(text);
34  if(mat.find()) {
35  return mat.group(group);
36  }
37  return null;
38  }

The documentation for this class was generated from the following file: