문제

How is it possible to create an regular expression within an XSD (pattern) that contains both quotes and apostrophes? I get you can check for one using the other as the value delimiters.

<pattern value="'"/>
<pattern value='"'/>

but what if you need to check for both?

<pattern value=""'"/>
<pattern value=''"'/>

simply dont work

도움이 되었습니까?

해결책

You can use &apos; or &quot;, for example :

<pattern value="&quot;|'"/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top