Site icon T4Tutorials.com

RegExp of strings Contains at least three 1s 

RegExp of strings Contains at least three 1s or three 0sRegExp of strings Contains at least three 1s

Regular expression : (0+1)*111(0+1)*

Acceptable strings(part of the lagnuage)

These strings must be accepted by our Regular expression.

Rejectable strings(not part of the lagnuage)

These strings must be rejected by our Regular expression.


 

RegExp of strings Contains at least three 1s or three 0’s

Regular expression : (0+1)*111(0+1)* +  (0+1)*000(0+1)*


RegExp of strings Contains at least three bs

Regular expression : (a+b)*bbb(a+b)*

Acceptable strings(part of the lagnuage)

These strings must be accepted by our Regular expression.

Rejectable strings(not part of the lagnuage)

These strings must be rejected by our Regular expression.


 

RegExp of strings Contains at least three b’s or three a’s

Regular expression : (a+b)*bbb(a+b)* + (a+b)*aaa(a+b)*

Exit mobile version