Regular Expressions Flashcards
Regular Expressions
a character or a sequence of characters that represent a string or multiple strings.
matches(String regex)
returns true if a string matches the given regular expression
This method allows much more flexibility in your code.
matches()
Indicates one or more occurrences of a specified character
+
Matcher’s find()
scans the input sequence looking for the next subsequence that matches the pattern.
Dot
Represents any single character in regular expressions
Pattern
Stores the format of a regular expression
Repetition operator
Indicates the number of times a specified character appears in a matching string
split( )
Used to specify where the operator wishes to separate the given string
*
Indicates zero or more occurrences of a specified character