<?phpif (ereg ("([a-z])-([A-Z])-([0-9])-([--_])")) { echo "buen texto si tiene abcABC123-_";} else { echo "sino esta mal?";}?>