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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([Vv]+(erdade(iro)?)?|[Ff]+(als[eo])?|[Tt]+(rue)?|0|[\+\-]?1)$
Description
This RegEx will match boolean values, either numeric or literal. It will accept MS Access "-1" values for "true", and recognizes English and Brazilian Portuguese.
Matches
False | verdadeiro | 0
Non-Matches
+0 | 1-1
Author Rating: The rating for this expression. Rudá Almeida
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: question
Name: Jan
Date: 11/10/2004 5:34:50 PM
Comment:
Are the + signs necessary? I think the "^([Vv](erdade(iro)?)?|[Ff](als[eo])?|[Tt](rue)?|0|[\+\-]? 1)$" is a more punctual expression.


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