Method: Verbal#anything_but

Defined in:
lib/verbal.rb

#anything_but(value) ⇒ Object

Matches any number of any character that is not in value.

Examples:

Match everything except underscores.

Verbal.new do
  anything_but '_'
end


108
109
110
# File 'lib/verbal.rb', line 108

def anything_but(value)
  append "(?:[^#{sanitize value}]*)"
end