Possibly teach parentheses `()` for grouping
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- markdown
調査の方向性
Start by reading episode 1's regular expressions lesson and its Matching Dates exercises; episode 2's phone number challenges show where escaped parentheses are used. Decide how to introduce grouping parentheses and add a related exercise with its solution. Done when the lesson explains the feature and the exercise demonstrates it.
索引モデルが issue の本文から書いたものです。
説明
Currently the lesson doesn't teach parentheses for grouping parts of the regular expression. I think it would be worth adding this to the metacharacters taught in episode 1 because:
- They are commonly used in building regular expressions
- The introduction about regular expressions says regex can be used for the following things that parentheses supports:
* Match patterns that repeat any number of times.
* Capture the parts of the original string that match your pattern.
- In episode 2, when searching for the phone number with area code given in parentheses, the solution says "
\(escape character with the parenthesis as straightforward character match", but parentheses have not been presented as a special character in the lesson, so the need to escape them has not been pointed out.
If added to the content in episode 1, some options for adding the () into exercises:
- Exercise
Matching Dates: "How would you match the date format dd-MM-yyyy?" could have a follow up of how to match that same pattern with a regular expression that includes parentheses, with a solution of\b(\d{2}-){2}\d{4}\b - After the
Matching Datesexercise, add one that would match both the pattern dd-MM-yyyy and MM-yyyy, with a solution of\b(\d{2}-){1,2}\d{4}\b. - Exercise
Matching multiple date formats: How would you match the date format dd-MM-yyyy or dd-MM-yy at the end of a line only? could give a solution in place of the current one that eliminates matching a 3 digit year as is currently given such as\b\d{2}-\d{2}-\d{2}(\d{2})?\b. - After the phone number related challenges in episode 2, add another that asks for a regex that matches both formats of phone numbers (with/without country code and area code given in parentheses or with dash) with a solution somewhere along the lines of
(\+\d{1,3} ?|1-)?(\(\d{3}\)\s?|\d{3}-)\d{3}-\d{4}
If adding about the use of parentheses in regex is desired by others, I don't mind contributing this and integrating one (or more) of the exercise options suggested above (or some other exercise you want to suggest).
- 主要言語
- 言語のデータがありません
- スター
- 36
- フォーク
- 84
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LibraryCarpentry/lc-data-intro のほかの issue
-
Incorrect solution in a couple of exercises.対応中かも @3kori が 76 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
-
Lesson title change再び着手できるかも @Freddy2304 が 751 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
LibraryCarpentry/lc-data-intro#240 · コメント 7 件 · リアクション 1 件 · 担当者 2 名 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 40/100
LibraryCarpentry/lc-data-intro#226 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
LibraryCarpentry/lc-data-intro#225 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
LibraryCarpentry/lc-data-intro#221 · コメント 1 件 ·
LibraryCarpentry/lc-data-intro の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
416rehman/Guardrails#1716 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
-
area:kubernetes area:security documentation priority:medium size:small
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
RonaldHensbergen/composable-data-stack#1339 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
hugomrdias/playwright-test#786 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信