RegexpTester 1.17

Posted on by

Check digit expressions

  • Digit:
  • N digits:
  • At least N digits:
  • m-n digits:
  • Zero and non-zero start digits:
  • Nonzero number with up to two decimal places:
  • A positive or negative number with one or two decimal places:
  • Positive, negative, and decimals:
  • A positive real number with two decimal places:
  • A positive real number with 1 to 3 decimal places:
  • A non-zero positive integer:
  • A non-zero negative integer:
  • Non-negative integers:
  • Non-positive integer:
  • Non-negative floating-point numbers:
  • Non-positive floating-point number:
  • Floating point number:
  • Negative Float:
  • Floating point number:

RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp). Supports JavaScript & PHP/PCRE RegEx. Results update in real-time as you type. Roll over a match or expression for details. Save & share expressions with others. Use Tools to explore your results. Regular expression - comment out all lines containing the word “logging”. And you can learn also from the explain plan on a site like that regex tester. – LukStorms May 1 '17 at 11:34 @LukStorms: That one is good. But still needs user input in creating regex. – Rahul May 1 '17 at 11:38. Regular Expression Library provides a searchable database of regular expressions. Users can add, edit, rate, and test regular expressions. I found a lot of Regex email validation in SO but I did not find any that will accept an empty string. Is this possible through Regex only? Accepting either empty string or email only?

Check character expressions

  • Alpha-Numeric Characters:
  • All characters with a length of 3-20:
  • A string of 26 letters:
  • A string of 26 uppercase English letters:
  • A string of 26 lowercase alphabetic characters:
  • A string of numbers and 26 letters:
  • A string of numbers, 26 letters, or an underscore:
  • input with ^%&',;=?$':
  • It is forbidden to input characters with ~:

Special Needs Expressions

  • Email:
  • URL or Domain name:
  • Date (MM/DD/YYYY)/(MM-DD-YYYY)/(MM.DD.YYYY)/(MM DD YYYY):
  • 12 months of the year(01~09和1~12):
  • 31 days a month(01~09和1~31):
  • Password:
  • US Phone Numbers
  • US Zip code
  • Slug
  • All the special characters need to be escaped
  • xml file:
  • Regular expressions for Chinese characters:
  • Double-byte characters:
  • Blank line:
  • HTML tags:
  • The leading and trailing whitespace character:
  • IP address:

Thank you for visiting OWASP.org. We recently migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.

  • Note: These Regexs are examples and not built for a particular Regexengine. However, the PCRE syntax is mainly used. In particular, thismeans that character classes do not contain meta characters whichneed to be escaped, except the - and ] character, where it isassumed that a - needs not to be escaped only when it is the lastcharacter in a character class. The character class supportsshortcut notations for other character classes like s or wwhich should not be used as they depend on the LOCALE environmentsetting in most systems.

Please carefully test the regex in your regex engine.

Regex Library Site

9 clues 2: the ward 1.0. What drove one of the male nurses insane? Who is Zed Rascov? Why is the name of a little girl, Ginger, carved into the wood-paneled wall of the dead doctor’s office?

RegexpTester

http://regexlib.com/: A site that has a HUGE library of regularexpressions and other regex resources

Regex Tutorial Site

http://www.regular-expressions.info/: A site with lots of tutorials onwriting Regexs and numerous examples

Regex Tester 1.17 2

Regex Construction Tool

http://www.ultrapico.com/Expresso.htm: A free regex construction tool

Regex Tester 1.17 1

Regex Explanation Tool

http://rick.measham.id.au/paste/explain.pl?regex=.*: Explains inEnglish what the supplied regex means