^[0-1]*1[0-1]*1[0-1]*1[0-1]*$
To match a binary string with 3 or more occurrences of '1' This expression works...just trying to make it better.
^[0-1]*1[0-1]*1[0-1]*1[0-1]*$
To match a binary string with 3 or more occurrences of '1' This expression works...just trying to make it better.
To match three or more occurrences of 1, I would use:
^(0*1){3}[01]*$