Skip to content

Commit 2ccab10

Browse files
committed
One more fix for regex
1 parent 261e415 commit 2ccab10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_sources/regex/bonussection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ regular expression support in ``grep``. As an example,
3535
notation ``[^ ]``\ , which simply means match a character that is anything
3636
other than a space.
3737

38-
.. mchoice:: regex_grep_mcq_rev2
38+
.. mchoice:: regex_grep_mcq_rev3
3939
:multiple_answers:
4040
:practice: T
4141
:answer_a: $ grep '\\$[0-9.]+' mbox-short.txt
@@ -45,7 +45,7 @@ other than a space.
4545
:correct: a,c
4646
:feedback_a: Correct! This is the correct way to use grep to find prices in a file.
4747
:feedback_b: Make sure to include the file name!
48-
:feedback_c: Correct! This uses the /d regex character to find prices in mbox-short.txt.
48+
:feedback_c: Correct! This uses the \\d regex character to find the 0-9 digits in mbox-short.txt.
4949
:feedback_d: Remeber that a '$' is a special character in regex. How do you tell it to look for an actual '$'?
5050

5151
Which option(s) properly uses the grep command-line to search for prices? Select all that apply.

0 commit comments

Comments
 (0)