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