⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (178 Bytes)
Bug #10539
ยป example.rb
tammo (tammo tjarks)
, 11/24/2014 03:57 PM
a
=
[
'moin'
,
'test'
,
'whatever'
]
ex_strings
=
[
"TOMATCH moin"
,
"SHOULNDTMATCH whatever"
]
ex_strings
.
each
do
|
str
|
if
str
=~
/TOMATCH
#{
a
.
join
(
"|"
)
}
/
then
puts
str
end
end
(1-1/1)
Loading...