<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
Maybe just define another attribute in basis.urs?<div><br /></div><div>It would be much interesting to define a DSEL though. I have not seen any attempts to create a DSEL for regular expressions.</div><div><br /><br /><br />20. Feb 2017 16:28 by <a href="mailto:artyom.shalkhakov@gmail.com" target="_blank" rel="noopener noreferrer">artyom.shalkhakov@gmail.com</a>:<br /><br /><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div>Hello all,<div><br /></div><div>'m doing form validation stuff, following examples on MDN. [1]<br /></div><div><br /></div><div>It seems like Ur/Web doesn't handle regular expressions?</div><div><br /></div><div>I guess it should not be too diffcult to define a DSEL in Ur/Web (just AST constructors and a few trusted functions: e.g. [compile : AST -> regexp], where [regexp] is an abstract type, or maybe just a string :-)) and have it work at least in the browser.</div><div><br /></div><div>Could somebody point me in the right direction here?</div><div><br /></div><div>-- <br /><div class="gmail_signature">Cheers,<br />Artyom Shalkhakov<br /></div><div class="gmail_signature"><br /></div><div class="gmail_signature">[1] <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation" target="_blank" rel="noopener noreferrer">https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation</a></div><div class="gmail_signature"><br /></div>
</div></div></blockquote></div>  </body>
</html>