Hi,
I am having a problem with my regular expression:
the following input is permitted:
string
string-string
string1
string-string1
string'string
for some reason my RE wouldn't do it for me;
(ereg ("[a-zA-Z]?[-']*[ a-zA-Z0-9]$" , $name)
Could anyone tell me whats wrong with my expression?
Thanks a lot,
Leon