title: reg ex exclude < and >
body: <p>I have been searching in futility for a regular expression that will ensure an entered string does not include &lt; or >, that will work for use with Foundation Abide as well as HTML5 when Javascript is turned off.</p>
  
  <p>I have attempted many versions of</p>
  
  <pre><code>[^&lt;][a-zA-Z \'-]+[a-zA-Z \'-]+
  
  [^&lt;|&gt;]([a-zA-Z \'-])+[^&lt;|&gt;]([a-zA-Z \'-])+
  
  [^&lt;][a-zA-Z \'-]+
  </code></pre>
  
  <p>etc. But I can not get this to work.</p>
  
  <p>This is the current line I have:</p>
  
  <pre><code>    &lt;input id="fName" name="fName" type="text" value="&lt;?=$fName;?&gt;" title="Non Numeric and only hyphen and single quote allowed." 
  required pattern="[^&lt;|&gt;][a-zA-Z \'-]+[^&lt;|&gt;][a-zA-Z \'-]+[^&lt;|&gt;]" /&gt;
  </code></pre>
  
  <p>I am sure this is just a hack attempt, as I do not have much experience with reg ex.</p>
  
  <p>What do I have wrong? </p>
  
  <p>What I want is to allow Alpha-Numeric values(actually names allowing for 2nd etc.) with spaces, single quotes, hyphens. But I do not want to allow &#60;sometag&#62; this that the other thing&#60;/sometag&#62;</p>
  
  <p>The basic pattern, which works,is this:</p>
  
  <blockquote>
    <p>pattern="[a-zA-Z \'-]+[a-zA-Z0-9 \'-]+"</p>
  </blockquote>
  
  <p>Now I need to modify that so tags will be flagged. (no &#60; or &#62;)</p>
  
  <p>FYI, I have tried the Abide predefined pattern "alpha_numeric" but this allows the &#60; and &#62; </p>
  
  <p>All  help will be appreciated.</p>