[Sdvalidator-users] Query
Status: Beta
Brought to you by:
jchapman0
From: Murtuza K. <mk...@re...> - 2005-12-15 10:41:12
|
=A0=0AI'm using SD Validator for the first time and am using the SGML type= .=0A=0AI have a few queries, which i have not been able to handle=0A=0A=0A1= . I am validating an email field which should have the following attributes= =0A=0Aa) optional field=0Ab) should have only lowercase and numerals =0Ac) = should have the term '@ats' in the field=0Ad) should be of maximum 70 chara= cters=0Ae) should not allow ','';'':''/'as characters in the field=0A=0AI h= ave been able to write two commands =0A=0AA. <EMAIL>? optional rgx=3D"[\#a-= z?=3D@_0-9-.!/,;:&$)(~^+]{0,70}"</EMAIL>=0A=0AThis one satisfies a,b,d but = not c and e=0A=0AB.<EMAIL>1 optional rgx=3D"[\#a-z?0-9.-_]+@ats[\#a-z?0-9.-= _]{0,70}"</EMAIL>=0A=0AThis one satisfies a,c,d but not b and e=0A=0AIs the= re anyway by which a,b,c,d and e can be satisfied.=0A=0A2. If my tag is B&W= then it is giving an error...is renaming the tag to not contain ampersand(= &) the only solution?=0A=0A3. Also my tag name begining with a numeral is n= ot being accepted...is renaming the tag to not begin with a numeral the onl= y solution?=0A=0AHope someone can help me on this one.=0A=0AThanks=0A=0AMur= tuza=0A=0A=0A=0A=0A |