Hi, i’m curious. How can i modify this expresssion so that it matches not only “alphanum-alphanum” but also “alphanum-alphanum-alphanum-alphanum” or any other number of repetitions of the pattern?
Here’s the expression:
$test = preg_match("/^[a-z0-9]+-*[a-z0-9]+$/i", $str);