Definitions for "Regex"
Core API Regular expressions # simple format delimited by // /search string/ # keyword-value pair pattern = /(\w+)\s*=\s*(.*?)$/ line = "mine = yours " result = pattern.match(line) result[0] = "mine" result[1] = "yours" Notes: Ruby 1.6 was quite relaxed about accepting regexp but 1.8 seems to demand the use of Regexp object when using =~ i.e. use: regexp = Regexp.new(string-expression) if joe =~ regexp then something end
Regular expression, more information ...
(abbreviation for Regular Expression): A formal notation for pattern specification for input to a search engine or language, regular expressions make use of wildcard characters and placeholders to let patterns match a variety of strings, as well as specific strings.
register registration authority