Build group regular expression in dojo : regexp « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script language="JavaScript" type="text/javascript">
      dojo.require("dojo.regexp");
      alert(dojo.regexp.buildGroupRE([true, false], function (item) {
        return "(fpp?|email?)\\://";
      }));
    </script>
  </head>
  <body></body>
</html>








29.22.regexp
29.22.1.dojo regex escape string
29.22.2.dojo regex group
29.22.3.Build group regular expression in dojo