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

5 lines
107 B
Text

str =~ /^(?:foo)$/
str =~ %r{foo|bar|buz$}
str =~ %r!foo|bar$!
str =~ %r[foo|bar$]
str =~ %r(\(foo|bar\)$)