background preloader

Ruby Regexp

Facebook Twitter

Ruby Regular Expressions. A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings using a specialized syntax held in a pattern.

Ruby Regular Expressions

A regular expression literal is a pattern between slashes or between arbitrary delimiters followed by %r as follows: Syntax: /pattern//pattern/im # option can be specified%r! Regex - Regular Expression(Ruby): match non-word, but exclude spaces. Rubular: a Ruby regular expression editor and tester. Rubyxp - Ruby regular expression tester.