RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([0-1])*$
Description
Expression validating a Binary string of any length
Matches
10101000 | 01010000 | 100000001
Non-Matches
01000200 | 00021000 | e10000000
Author Rating: The rating for this expression. Cliff Wagner
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: A Simplification
Name: Condar
Date: 7/24/2017 11:45:02 AM
Comment:
This can simplified as ^[01]*$ You don't need the parenthesis, and the hyphen in between the 0 and 1 isn't needed either.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials