presentations/highlight-js/test/markup/ruby/regexes.txt

6 lines
107 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
str =~ /^(?:foo)$/
str =~ %r{foo|bar|buz$}
str =~ %r!foo|bar$!
str =~ %r[foo|bar$]
str =~ %r(\(foo|bar\)$)