← Quiz: Regular Expressions: all 10 questions
Quiz: Regular Expressions · Question 7 of 10
Using the precedence rules, how is ab + c read?
Using the precedence rules, how is ab* + c read?
- A.(ab)* + c
- B.(a(b*)) + c
- C.a(b* + c)
- D.((ab) + c)*
Answer & explanation
Correct answer: (a(b*)) + c
Star binds tightest, then concatenation, then union.
Can you get the rest right without peeking?
Take the timed Quiz: Regular Expressions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →