- Review regular expression patterns from the introduction. Remember, when creating the pattern from a string, you must escape some characters.
- Refer to the full Java regex spec.
- Check out this website about regular expressions: Regular-Expressions.info.
- Check out this website about regular expressions: Rex Egg -The world's most tyrannosauical regex tutorial.
- Check out this website about regular expressions: RegexOne - Learn Regular Expressions with simple, interactive exercises..
- Check out this website about regular expressions: Regular Expressions 101 - an online regex sandbox.
- Check out this website about regular expressions: RegExr - an online regex sandbox.
- Remember to return a string representing the regular expression pattern.
- Review how to create character classes or use shorthand character classes.
- Review quantifiers.
- A day is one or two digits.
- A month is one or two digits.
- A year is four digits.
- Create a regex pattern with
re-pattern
. - Return a regex match with
re-matches
.
- Review how to write a pattern to match string literals.
- Review alternations.
- Wrap the whole expression in a group.
- Review how to write patterns for captures and named captures.
- Reuse the
day
,month
,year
,day-names
, andmonth-names
functions that you already implemented. - You can use
re-matcher
to return an instance ofjava.util.regex.Matcher
to use withre-find
.
- Remember, string concatenation may be used to join strings.
- Reuse the
capture-day
,capture-month
,capture-year
,capture-day-name
, andcapture-month-name
functions that you already implemented.
- Remember, anchors help to match the pattern to the whole line.
- String concatenation may be used in a call to
re-pattern
. - Reuse the
capture-numeric-date
,capture-month-name-date
, andcapture-day-month-nam-date
functions that you already implemented.