Created
July 15, 2016 15:04
-
-
Save anonymous/28df35cb1364d91c12212b290f312b81 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
txt = <<eof | |
slow_query_log | |
slow_query_log_file = slow-log | |
long_query_time = 13 | |
min_examined_row_limit = 42 | |
log-queries-not-using-indexes = 1 | |
eof | |
regex1 = /.*slow_query_log.*slow_query_log_file = slow-log.*long_query_time = 13.*min_examined_row_limit = 42.*log-queries-not-using-indexes = .*/m | |
regex2 = %r{ | |
.*slow_query_log.* | |
slow_query_log_file = slow-log.* | |
long_query_time = 13.* | |
min_examined_row_limit = 42.* | |
log-queries-not-using-indexes = .* | |
}xm | |
regex1.match txt | |
=> MAtchData....... | |
regex2.match txt | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment