Skip to content

Commit

Permalink
Update Changelog and Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
eparreno committed Sep 24, 2012
1 parent 6fd7e66 commit 99c402f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
24/09/2012
-------------------------
Add DBDate regexp
Add DBDateTime regexp
Add SpanishBankAccountNumber regexp

30/09/2011
-------------------------
Regular expressions match with \A and \z (string delimiters)
Regular expressions match with \A and \z (string delimiters)
instead of ^ and $ (line delimiters)

27/09/2011
Expand Down
20 changes: 12 additions & 8 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@ RubyRegex is a nice collection of regular expressions in Ruby
RubyRegex::SlidesahreUsername
RubyRegex::GithubUsername
RubyRegex::UUID

RubyRegex::DBDate
RubyRegex::DBDatetime
RubyRegex::SpanishBankAccountNumber

== Rails

# config/environment.rb
config.gem ruby_regex


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

Add to your Gemfile

gem 'ruby_regex'

In the models

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

== Contribute

Of course, contributions will be apreciated.
Expand Down

0 comments on commit 99c402f

Please sign in to comment.