Hi, in JavaScript you can use the $ operator to denote that the char class before it will only match at the end of the line.
eg.
/t$/ is true when compared to "eat" but false with "eaten"
how can I do this with PHP?
The reason I want to do this is to parse domain names, before registering them and I dont want to let through names with hyphens at the end, like www.php-.com
Cheers, Jim