Add a string to the expression that might appear once.
Find http or https.
Verbal.new do find 'http' maybe 's' end
Parameters:
the string to look for
89 90 91
# File 'lib/verbal.rb', line 89 def maybe(value) append "(?:#{sanitize value})?" end