LibraryCarpentry / lc-data-intro

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

Regular expressions examples in Intro #189

Open mightylibrarian opened 3 years ago

mightylibrarian commented 3 years ago

Use the same term for Lines 55-59

I think using the same term "mark" is best for lines 56 to 59, easier to compare and allows instruction to ask for other terms using terms: word, comb, and respect.

- the regular expression `mark` will match not only `mark` but also find `marking`, `market`, `unremarkable`, and so on.
- the regular expression `\bmark` will match `mark`, `marking`, and `marketable`, but not 'remark' or 'demark'.
- the regular expression `mark\b` will match `mark` and `remark` but not `market`.
- the regular expression `\bmark\b` will match `mark` but not `marking' or `unremarkable`.

Thanks for contributing! If this contribution is for instructor training, please send an email to checkout@carpentries.org with a link to this contribution so we can record your progress. You’ve completed your contribution step for instructor checkout just by submitting this contribution.

If this issue is about a specific episode within a lesson, please provide its link or filename.

Please keep in mind that lesson maintainers are volunteers and it may be some time before they can respond to your contribution. Although not all contributions can be incorporated into the lesson materials, we appreciate your time and effort to improve the curriculum. If you have any questions about the lesson maintenance process or would like to volunteer your time as a contribution reviewer, please contact The Carpentries Team at team@carpentries.org.


aforestsomewhere commented 8 months ago

I recently instructed using this lesson plan and would agree that using the same string "mark" with different possible word boundaries would improve the clarity.