RegexLibrary
public class JavaRegex extends java.lang.Object implements RegexLibrary
Constructor | Description |
---|---|
JavaRegex() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
regexMatch(java.lang.String regular_expression,
java.lang.String expression_ops,
java.lang.String value) |
Matches a regular expression against a string value.
|
IntegerVector |
regexSearch(Table table,
int column,
java.lang.String regular_expression,
java.lang.String expression_ops) |
Performs a regular expression search on the given column of the table.
|
public boolean regexMatch(java.lang.String regular_expression, java.lang.String expression_ops, java.lang.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, java.lang.String regular_expression, java.lang.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 © 2018. All rights reserved.