public class RegularExpressionConverter extends Object
| Constructor and Description |
|---|
RegularExpressionConverter(char zeroOrMoreChar,
char anyChar,
char escapeChar)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
convert(String input)
Convert a regular expression from Java to use the specified constructs.
|
public RegularExpressionConverter(char zeroOrMoreChar,
char anyChar,
char escapeChar)
zeroOrMoreChar - The pattern string for representing zero or more characters.
Most of databases will use the percent sign character.anyChar - The pattern string for representing one character.
Most of databases will use the underscore character.escapeChar - The pattern string for representing to escape zeroOrMoreChar or anyChar.
Most of databases will use the backslash \ character.Copyright © 2019. All rights reserved.