regexes.expect.txt 272 B

12345
  1. str =~ <span class="hljs-regexp">/^(?:foo)$/</span>
  2. str =~ <span class="hljs-regexp">%r{foo|bar|buz$}</span>
  3. str =~ <span class="hljs-regexp">%r!foo|bar$!</span>
  4. str =~ <span class="hljs-regexp">%r[foo|bar$]</span>
  5. str =~ <span class="hljs-regexp">%r(\(foo|bar\)$)</span>