Skip to content

Instantly share code, notes, and snippets.

View ar-to's full-sized avatar
🤔
scheming my next project

Ari ar-to

🤔
scheming my next project
View GitHub Profile
@ar-to
ar-to / string_check.rb
Created October 21, 2022 01:08
Check methods used to check a string. e.g. Email domain validation
#
# Small script to check the difference between methods
# that compare strings
#
# motivation: to check for a domain in an email for use in validation
#
def check (list, string, regex_string, verbose=true)
w_include = 0
w_regex = 0