regex.expect.txt 638 B

12345678
  1. <span class="hljs-comment"># Regexps</span>
  2. x = <span class="hljs-regexp">/\//</span>
  3. x = <span class="hljs-regexp">/\n/</span>
  4. x = <span class="hljs-regexp">/ab\/ ab/</span>
  5. x = f <span class="hljs-regexp">/6 * 2/</span> - <span class="hljs-number">3</span>
  6. x = f <span class="hljs-regexp">/foo * 2/gm</span>
  7. x = <span class="hljs-keyword">if</span> <span class="hljs-literal">true</span> <span class="hljs-keyword">then</span> <span class="hljs-regexp">/\n/</span> <span class="hljs-keyword">else</span> <span class="hljs-regexp">/[.,]+/</span>
  8. x = <span class="hljs-regexp">///^key-<span class="hljs-subst">#{key}</span>-\d+///</span>