regex.txt 248 B

123456789101112131415161718
  1. # Regexps
  2. x = //
  3. x = (//)
  4. x = (/test/)
  5. x = //mig
  6. x = //gim
  7. x = /something/gim
  8. x = /\//
  9. x = /\n/
  10. x = /ab\/ ab/
  11. x = f /6 * 2/ - 3
  12. x = f /foo * 2/gm
  13. x = if true then /\n/ else /[.,]+/
  14. x = ///^key-#{key}-\d+///
  15. # not a Regexp
  16. x = //test
  17. x = /boo/test