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