Ruby regular expressions library
Ruby
Switch branches/tags
Latest commit 1841b6e Feb 25, 2017 @eparreno eparreno remove gem package
Permalink
Failed to load latest commit information.
doc Add RDoc to gemfile and regenerate docs Feb 25, 2017
lib shorter to use hexdigit metacharacter for UUID regex Oct 23, 2016
test IBAN regex support Feb 27, 2014
.gitignore add ruby-version to gitignore Jul 1, 2013
CHANGELOG Update Changelog and Readme Sep 24, 2012
Gemfile bump version 0.1.1 Nov 13, 2013
Gemfile.lock Add RDoc to gemfile and regenerate docs Feb 25, 2017
LICENSE add license Apr 30, 2010
README.md Add test-unit as dev dependency. Regenerate docs Feb 8, 2017
Rakefile adding things for the modern times and also making (in /Users/fguille… Sep 3, 2012
ruby_regex.gemspec

README.md

RubyRegex

Gem Version Build Status Code Climate

RubyRegex is a nice collection of regular expressions in Ruby

Regular expressions

RubyRegex::Url
RubyRegex::Domain
RubyRegex::Email
RubyRegex::Username
RubyRegex::USSocialSecurity
RubyRegex::GeneralPostalCode
RubyRegex::ZIPCode
RubyRegex::CreditCard
RubyRegex::MasterCard
RubyRegex::Visa
RubyRegex::TwitterUsername
RubyRegex::DeliciousUsername
RubyRegex::SlideshareUsername
RubyRegex::GithubUsername
RubyRegex::UUID
RubyRegex::DBDate
RubyRegex::DBDatetime
RubyRegex::SpanishBankAccountNumber
RubyRegex::Dni

Rails

Add to your Gemfile

gem 'ruby_regex'

In the models

validates_format_of :email, :with => RubyRegex::Email

Contribute

Of course, contributions will be apreciated.

If you want to contribute send me a pull request with new regular expressions (and their tests) or send me an email with your desired regular expression to emili@eparreno.com


RubyRegex is released under the MIT-License and is Copyright (c)2010 Emili Parreño.