Hi,
I'm having trouble with a certain piece of regex:
The string may not begin or end with a '-' and must contain at least one letter. So I made this one:
<?
eregi("[a-z0-9]+([a-z0-9-]+)?[a-z0-9]+$",$record);
?>
But now how do I check if it containt at least one letter in the same eregi statement? Can this be done within the same statement?
Thanx,
Niels Kregting