LibraryCarpentry / lc-data-intro

Library Carpentry: Introduction to Working with Data (Regular Expressions)
https://librarycarpentry.org/lc-data-intro/
Other
29 stars 82 forks source link

OR (“Finish the expression” in https://librarycarpentry.org/lc-data-intro/02-match-extract-strings/index.html) #192

Open aadoek opened 3 years ago

aadoek commented 3 years ago

In exercise “Finish the expression” in https://librarycarpentry.org/lc-data-intro/02-match-extract-strings/index.html the answer according to the lesson is:

[\w.-]+.[\w]{2,3} OR [\w.-]+.[\w]

The OR here is meant to indicate that there are two possible answers. One of the participants in our workshop read this as a part of the regular expression. This mistake is very easy to make, as this lesson is also about regular expressions!

I suggest rewriting OR as 'or, alternatively' in lowercase.