public class Regex extends Object
| Constructor and Description |
|---|
Regex(String pattern,
boolean isCaseSensitive)
Creates a new Regex object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern()
Get the regex pattern.
|
boolean |
isCaseSensitive()
Get whether the regex is case-sensitive.
|
public Regex(String pattern, boolean isCaseSensitive)
pattern - the regular expression to use as part of a detectorisCaseSensitive - whether to consider case sensitivity when evaluating matchespublic String getPattern()
public boolean isCaseSensitive()
Copyright © 2022. All rights reserved.