As in HTML 4 specification noted that :
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
How can I validate an ID/NAME token is valid by using PHP?