Skip to content

Commit

Permalink
Update 02-match-extract-strings.md
Browse files Browse the repository at this point in the history
What is the problem?
In 2. Matching & Extracting Strings > Exercise finding email addresses using regex101.com > Finish the Expression, there is a broken link labelled "here" to common domain names directing to https://stats.research.icann.org/dns/tld_report/

Proposed changes?
Amended https://stats.research.icann.org/dns/tld_report/ to 
https://data.iana.org/TLD/tlds-alpha-by-domain.txt

Location of problem
https://librarycarpentry.org/lc-data-intro/instructor/02-match-extract-strings.html#exercise-finding-email-addresses-using-regex101.com

Re: issue LibraryCarpentry#219
  • Loading branch information
aforestsomewhere authored Apr 26, 2024
1 parent 2ca808a commit 8761b9d
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://stats.research.icann.org/dns/tld_report/). 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. 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.

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

Expand Down

0 comments on commit 8761b9d

Please sign in to comment.