lc-data-intro icon indicating copy to clipboard operation
lc-data-intro copied to clipboard

Regular expressions examples in Intro

Open mightylibrarian opened this issue 3 years ago • 1 comments

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 [email protected] 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 [email protected].


mightylibrarian avatar Jun 14 '21 18:06 mightylibrarian

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.

aforestsomewhere avatar Dec 08 '23 16:12 aforestsomewhere