-
-
Save Zarthus/c96400ccf4d46de8abbef62fdcab0537 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
re = /A ([Ff]eature|Bug) complete Regular Expression/m | |
str = 'A feature complete Regular Expression | |
A Bug complete Regular Expression | |
Sinkkuelämää' | |
# Print the match result | |
str.scan(re) do |match| | |
puts match.to_s | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment