title: Regular Expression, pattern matching in xsd
body: <p>I was wondering how to make a regular expression for any character except <code>*</code> and <code>+</code> . I've tried <code>([^*+])</code> and <code>(\[^*+])</code> but both expressions seem to be incorrect. Can someone please point me in the right direction? Thanks. </p>
  
  <p>Edit: Here is a code snipet. I've attached the reg ex suggested below into visual studio and it still generates an error when i enter in a regular string. </p>
  
  <pre><code>&lt;xsd:element name="elementName"&gt;
      &lt;xsd:simpleType&gt;
          &lt;xsd:restriction base="xsd:string"&gt;
              &lt;xsd:pattern value="/^[^*+]+$/"&gt;&lt;/xsd:pattern&gt;
          &lt;/xsd:restriction&gt;
      &lt;/xsd:simpleType&gt;
  &lt;/xsd:element&gt;   
  </code></pre>
  
  <p>Edit: The example string I'm using is "test" 
  The result is pattern constraint fail with the current reg ex: <code>/^[^*+]+$/</code></p>