Jenski

Jenski's Corner of the Web

Testing Regular Expressions

As I use trial and error to get try and get the right regex pattern, I needed something that would help me determine I have the right pattern

This tool tells you where the pattern is matched in the string given and will also show any substrings found in brackets

Regular Expression Testing Tool

Pattern:
Haystack:

Useful Regular Expressions

  • MAC address: /^([0-9a-fA-F]2[:-])5[0-9a-fA-F]2$/i

Preg_match resources