Test the PHP function preg_match
This PHP preg_match online tool is design for you to try patterns on an input.
preg_matchis a PHP function that test a pattern to a string or a text set in input.
The return will be a boolean value
false. The pattern is a regular expression. Matches can be return by the function in a variable.
Our tool will show you both results : the boolean and the matched value.
It will help you to test a pattern without having to update your script several time. It is easy to use. You just have to copy the input and the pattern in the form and hit the button.
About patterns here are some information which may help you to build one :
||Start and end delimiters|
||Meaning that the input has to start at this point of the pattern|
||Meaning that the input has to end at this point of the pattern|
||Matches pretty much all the values possibles at this place, I actually use it a lot when I don't have to worry about unsafe values.|
||One digit between 0 and 9|
||3 digits between 0 and 9. You just have to change the 3 buy any length.|
||All digits between 0 and 9, it is an unlimited length.|
||All alphabetic strings|
It will return true to all alphanumeric strings put in input.