The Wayback Machine - https://web.archive.org/all/20050307013151/http://www.quanetic.com:80/regex.php
Quanetic Software March 6, 2005  
 Fun Things
  Java
  Music
  Chess
  RegEx Test
  PrePak Website
  Links
 Site Stuff
  Home
  Login
  Resume
Does it match?
Regular Expression Tester
Anytime I use Regular Expressions, I find myself doing a bit of trial-and-error until I get the right pattern. So, I whipped this up to help...

Due to popular demand, I've added parenthesized substring support.

Pattern:
Haystack:
preg (Perl) ereg (POSIX)
Some helpful hints, from PHP's ereg page:
^Start of String
$End of string
\Escape the next character; interpret it literally
n*Zero or more of 'n'
n+One or more of 'n'
n?A possible 'n'
n{2}Exactly two of 'n'
n{2,}At least 2 or more of 'n'
n{2,4}From 2 to 4 of 'n'
()Parenthesis to group substrings
(n|a)Either 'n' or 'a'
.Any single character
[1-6]A number between 1 and 6
[c-h]A lower case character between c and h
[D-M]An upper case character between D and M
[^a-z]Absence of lower case a to z
[_a-zA-Z]An underscore or any letter of the alpha
This site constructed sometime in 2001.
info@quanetic.com