|
...What?
preg_match() is a Perl-compatible regex function. It is like ereg(), only the regex is different.
preg_match() basically compares a string against a regular expression pattern. The pattern you write depends on what you want it to do. From the extremely vague description of your post, I can't help you further, except to tell you to look up tutorials on regex (regular expressions).
|