LPI
101-500 · Question #153
What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words
The correct answer is D. Match a literal + symbol. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
Question
What does the + symbol mean in the following grep regular expression: grep '^d[aei]+d$' /usr/share/dict/words
Options
- AMatch the preceding character set ([aei]) one or more times.
- BMatch the preceding character set ([aei]) zero or more times.
- CMatch the preceding character set ([aei]) zero or one times.
- DMatch a literal + symbol.
How the community answered
(35 responses)- A3% (1)
- B6% (2)
- D91% (32)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#grep#regex metacharacters#POSIX grep#pattern matching
Community Discussion
No community discussion yet for this question.