Question: Easy regular expression question Question a Write a regular expression that when a pair of 1s consecutive appears, there must be two 0s before it.(Only

Easy regular expression question

Question a

Write a regular expression that when a pair of 1s consecutive appears, there must be two 0s before it.(Only 0 or 1 in this case, no letters and other numbers) Like 0011010001101

Question b

Write a regular expression that there must be 1 or two numbers between two 1s(Like 1001 or 111. And 11 is not right because there are no numbers between these two 1s)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!