Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 840 Bytes

File metadata and controls

52 lines (35 loc) · 840 Bytes

Regex Class

A class to handle regex operations

Since

11/27/2024

Author Zackary Frazier

Methods

getGroups(str, regexPattern)

Get the groups from a regex pattern

Signature

public List<String> getGroups(String str, String regexPattern)

Parameters

Name Type Description
str String String
regexPattern String String

Return Type

List<String>

,[object Object]


matches(str, regexPattern)

Returns whether a string matches a regex pattern

Signature

public Boolean matches(String str, String regexPattern)

Parameters

Name Type Description
str String String
regexPattern String String

Return Type

Boolean

,[object Object]