Help required in making a regular expression
"Kataria, Satish" <[email protected]> Mon, 12 Sep 2005 00:09:48 -0400
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <9C0171E5DDDD4C48B82FB55F61AB76F0AD3462@MSGBANCLA2WIN.DMN1.FMR.COM> |
------_=_NextPart_001_01C5B74F.D0B67022 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have the following schema definition : The requirement is to not allow leading and trailing spaces. <xsd:simpleType name=3D"Comment_T"> <xsd:annotation> <xsd:documentation> Comment text </xsd:documentation> </xsd:annotation> <xsd:restriction base=3D"xsd:string"> <xsd:maxLength value=3D"2000"/> <xsd:pattern value=3D"(\S(?:.*\S)?)"/> </xsd:restriction> </xsd:simpleType> Now I need to change it so that following expression are also not allowed : NONE, N/A, =3D, !=3D, <, >, <=3D, and >=3D Note that The symbols shouldn't be contained in any part of the data provided as part of Comment_T. Thus a string like SNONE or sN/Ass or s<dd are also invalid values. I am not able to make out the appropriate regular experession which would meet this requirement.=20 I will appreciate any suggestions regarding this. Thanks, Satish Kataria ------_=_NextPart_001_01C5B74F.D0B67022--