• edited by
1,615 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,038 views
Can we simplify this RegEx - $a^*ba^*b(a+b)^*$
1 1 vote
0 0 answers
761
761 views
Mk Utkarsh asked Mar 12, 2018
761 views
please verify the regex
0 0 votes
1 1 answer
642
642 views
Srken asked Sep 4, 2022
642 views
How to convert (a+b)* into a minimal Dfa