public class JavaRegex extends Object implements RegexLibrary
Constructor and Description |
---|
JavaRegex() |
Modifier and Type | Method and Description |
---|---|
boolean |
regexMatch(String regular_expression,
String expression_ops,
String value)
Matches a regular expression against a string value.
|
IntegerVector |
regexSearch(Table table,
int column,
String regular_expression,
String expression_ops)
Performs a regular expression search on the given column of the table.
|
public boolean regexMatch(String regular_expression, String expression_ops, String value)
RegexLibrary
regexMatch
in interface RegexLibrary
regular_expression
- the expression to match (eg. "[0-9]+").expression_ops
- expression operator string that specifies various
flags. For example, "im" is like '/[expression]/im' in Perl.value
- the string to test.public IntegerVector regexSearch(Table table, int column, String regular_expression, String expression_ops)
RegexLibrary
regexSearch
in interface RegexLibrary
table
- the table to search for matching values.column
- the column of the table to search for matching values.regular_expression
- the expression to match (eg. "[0-9]+").expression_ops
- expression operator string that specifies various
flags. For example, "im" is like '/[expression]/im' in Perl.Copyright © 2015. All rights reserved.