Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 101-500 Topic 1 Question 93 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 93
Topic #: 1
[All 101-500 Questions]

What does the + symbol mean in the following grep regular expression:

grep '^d[aei]\+d$' /usr/share/dict/words

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Carlee
21 minutes ago
Selecting option D would be a bit of a 'plus' sized mistake. The + symbol here is a quantifier, not a literal character to be matched.
upvoted 0 times
...
Paola
2 days ago
Option C is tempting, but the + symbol is not for zero or one matches. That would be the ? symbol. The + is clearly for one or more matches.
upvoted 0 times
...
Latanya
7 days ago
I was about to choose option B, but then I realized that zero or more matches wouldn't make sense for this expression. The + symbol is definitely for one or more matches.
upvoted 0 times
...
Jennifer
1 months ago
The + symbol in the given grep regular expression means that the preceding character set [aei] should be matched one or more times. This is the correct answer, option A.
upvoted 0 times
Candida
4 days ago
A) Match the preceding character set ([aei]) one or more times.
upvoted 0 times
...
...
Glory
1 months ago
I agree, A makes sense based on the regular expression provided.
upvoted 0 times
...
Brinda
1 months ago
I think it's A too, because the + symbol means one or more times.
upvoted 0 times
...
Jeffrey
1 months ago
A) Match the preceding character set ([aei]) one or more times.
upvoted 0 times
...

Save Cancel
a