• edited by
1,619 views
2 2 votes
Write a regular expression for all strings of 0’s and 1’s in which the total number of 0’s to the left of each 1 is even?

I'm getting - 0*+((00)*1(0)*)*

is it correct?

1 Answer

Best answer
2 2 votes

RE=(1* (00)* 1*)* 0*     ??????

• selected by
Position:
Show:

Related questions

0 0 votes
2 answers 2 answers
1.0k
1.0k views
iarnav asked Aug 31, 2017
1,041 views
Can we simplify this RegEx - $a^*ba^*b(a+b)^*$
1 1 vote
0 0 answers
766
766 views
Mk Utkarsh asked Mar 12, 2018
766 views
please verify the regex
0 0 votes
1 1 answer
644
644 views
Srken asked Sep 4, 2022
644 views
How to convert (a+b)* into a minimal Dfa