xml - InvalidRegex: Pattern value '(?:Y|N)' is not a valid regular expression. -


i have used regular expression yes no type. compiler throwing exception this.

<xsd:simpletype name="yesnotype">         <xsd:annotation>             <xsd:documentation>                 type yes , no inputs.             </xsd:documentation>         </xsd:annotation>         <xsd:restriction base="xsd:string">                 <xsd:pattern value="(?:y|n)"/>         </xsd:restriction> </xsd:simpletype> 

invalidregex: pattern value '(?:y|n)' not valid regular expression. reported error was: 'this expression not supported in current option setting.'.

please me regarding this.

just replace simpler like

y|n 

or

[yn]  

or like.

non-capturing parens not implemented in versions of regex.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -