Skip to content

Commit

Permalink
Update episodes/02-match-extract-strings.md
Browse files Browse the repository at this point in the history
Co-authored-by: Toby Hodges <[email protected]>
  • Loading branch information
aforestsomewhere and tobyhodges authored Apr 26, 2024
1 parent 8761b9d commit 14a7da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/02-match-extract-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ The string before the "@" could contain any kind of word character, special char

### Finish the expression

The string after the "@" could contain any kind of word character, special character or digit in any combination and length as well as the dash. In addition, we know that it will have some characters after a period (`.`). Most common domain names have two or three characters, but many more are now possible. Find the latest list [here](https://data.iana.org/TLD/tlds-alpha-by-domain.txt). What expression would capture this? Hint: the `.` is also a metacharacter, so you will have to use the escape `\` to express a literal period. Note: for the string after the period, we did not try to match a `-` character, since those rarely appear in the characters after the period at the end of an email address.
The string after the "@" could contain any kind of word character, special character or digit in any combination and length as well as the dash. In addition, we know that it will have some characters after a period (`.`). Most common domain names have two or three characters, but many more are now possible ([access the latest list](https://data.iana.org/TLD/tlds-alpha-by-domain.txt)). What expression would capture this? Hint: the `.` is also a metacharacter, so you will have to use the escape `\` to express a literal period. Note: for the string after the period, we did not try to match a `-` character, since those rarely appear in the characters after the period at the end of an email address.

::::::::::::::: solution

Expand Down

0 comments on commit 14a7da0

Please sign in to comment.