← Quiz: Regular Expressions: all 10 questions
Quiz: Regular Expressions · Question 1 of 10
Which regex describes binary strings ending in 01?
Which regex describes binary strings ending in 01?
- A.01(0+1)*
- B.(0+1)*01
- C.(01)*
- D.01
Answer & explanation
Correct answer: (0+1)*01
Any prefix followed by 01.
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 →