Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

new readme, docs and changelog

  • Loading branch information...
commit b3b6cc0e87578b60fa1798cf15d2a6d3c5b4f84c 1 parent 11cab82
@eparreno authored
View
7 CHANGELOG
@@ -1,3 +1,10 @@
+18/5/2010
+-------------------------
+Add RubyRegex::TwitterUsername
+Add RubyRegex::DeliciousUsername
+Add RubyRegex::SlidesahreUsername
+Add RubyRegex::GithubUsername
+
6/5/2010
-------------------------
Add RubyRegex::USSocialSecurity
View
13 README.rdoc
@@ -1,8 +1,8 @@
= RubyRegex
-Ruby regular expressions library
+RubyRegex is a nice collection of regular expressions in Ruby
-== Methods
+== Regular expressions
RubyRegex::Url
RubyRegex::Domain
@@ -14,6 +14,10 @@ Ruby regular expressions library
RubyRegex::CreditCard
RubyRegex::MasterCard
RubyRegex::Visa
+ RubyRegex::TwitterUsername
+ RubyRegex::DeliciousUsername
+ RubyRegex::SlidesahreUsername
+ RubyRegex::GithubUsername
== Rails
@@ -30,6 +34,11 @@ 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
+== Contributors
+
+- Lleïr Borràs
+- Jaime Iniesta
+
---
RubyRegex is released under the MIT-License and is Copyright (c)2010 Emili Parreño.
View
23 doc/CHANGELOG.html
@@ -22,6 +22,16 @@
<body class="file">
<div id="metadata">
+ <div id="home-metadata">
+ <div id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="./index.html">Home</a>
+ <a href="./index.html#classes">Classes</a>
+ <a href="./index.html#methods">Methods</a>
+ </h3>
+ </div>
+ </div>
+
<div id="project-metadata">
@@ -31,6 +41,8 @@ <h3 class="section-header">Files</h3>
<li class="file"><a href="./CHANGELOG.html">CHANGELOG</a></li>
+ <li class="file"><a href="./LICENSE.html">LICENSE</a></li>
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
@@ -64,13 +76,20 @@ <h3 class="section-header">Class Index
<div id="documentation">
<p>
+18/5/2010
+</p>
+<hr style="height: 10px"></hr><p>
+Add RubyRegex::TwitterUsername Add RubyRegex::DeliciousUsername Add
+RubyRegex::SlidesahreUsername Add RubyRegex::GithubUsername
+</p>
+<p>
6/5/2010
</p>
-<hr size="10"></hr><p>
+<hr style="height: 10px"></hr><p>
Add RubyRegex::USSocialSecurity Add RubyRegex::GeneralPostalCode Add
RubyRegex::ZIPCode Add RubyRegex::CreditCard
</p>
-<hr size="10"></hr><p>
+<hr style="height: 10px"></hr><p>
Add RubyRegex::Username Add RubyRegex::Dni
</p>
View
113 doc/LICENSE.html
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+
+ <title>File: LICENSE [RDoc Documentation]</title>
+
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
+
+ <script src="./js/jquery.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="./js/quicksearch.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="./js/darkfish.js" type="text/javascript"
+ charset="utf-8"></script>
+</head>
+
+<body class="file">
+ <div id="metadata">
+ <div id="home-metadata">
+ <div id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="./index.html">Home</a>
+ <a href="./index.html#classes">Classes</a>
+ <a href="./index.html#methods">Methods</a>
+ </h3>
+ </div>
+ </div>
+
+ <div id="project-metadata">
+
+
+ <div id="fileindex-section" class="section project-section">
+ <h3 class="section-header">Files</h3>
+ <ul>
+
+ <li class="file"><a href="./CHANGELOG.html">CHANGELOG</a></li>
+
+ <li class="file"><a href="./LICENSE.html">LICENSE</a></li>
+
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
+
+ </ul>
+ </div>
+
+
+ <div id="classindex-section" class="section project-section">
+ <h3 class="section-header">Class Index
+ <span class="search-toggle"><img src="./images/find.png"
+ height="16" width="16" alt="[+]"
+ title="show/hide quicksearch" /></span></h3>
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
+ <fieldset>
+ <legend>Quicksearch</legend>
+ <input type="text" name="quicksearch" value=""
+ class="quicksearch-field" />
+ </fieldset>
+ </form>
+
+ <ul class="link-list">
+
+ <li><a href="./RubyRegex.html">RubyRegex</a></li>
+
+ </ul>
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
+ </div>
+
+
+ </div>
+ </div>
+
+ <div id="documentation">
+ <p>
+Copyright &#169; 2010, Emili Parreño
+</p>
+<p>
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+&#8220;Software&#8221;), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to the
+following conditions:
+</p>
+<p>
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+</p>
+<p>
+THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
+</p>
+
+ </div>
+
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
+ Rdoc Generator</a> 1.1.6</small>.</p>
+ </div>
+</body>
+</html>
+
View
56 doc/README_rdoc.html
@@ -22,6 +22,16 @@
<body class="file">
<div id="metadata">
+ <div id="home-metadata">
+ <div id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="./index.html">Home</a>
+ <a href="./index.html#classes">Classes</a>
+ <a href="./index.html#methods">Methods</a>
+ </h3>
+ </div>
+ </div>
+
<div id="project-metadata">
@@ -31,6 +41,8 @@ <h3 class="section-header">Files</h3>
<li class="file"><a href="./CHANGELOG.html">CHANGELOG</a></li>
+ <li class="file"><a href="./LICENSE.html">LICENSE</a></li>
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
@@ -65,24 +77,58 @@ <h3 class="section-header">Class Index
<div id="documentation">
<h1><a href="RubyRegex.html">RubyRegex</a></h1>
<p>
-Ruby regular expressions library
+<a href="RubyRegex.html">RubyRegex</a> is a nice collection of regular
+expressions in Ruby
</p>
-<h2>Methods</h2>
+<h2>Regular expressions</h2>
<pre>
RubyRegex::Url
RubyRegex::Domain
RubyRegex::Email
- RubyRegex::ZipCode
+ RubyRegex::Username
+ RubyRegex::USSocialSecurity
+ RubyRegex::GeneralPostalCode
+ RubyRegex::ZIPCode
+ RubyRegex::CreditCard
+ RubyRegex::MasterCard
+ RubyRegex::Visa
+ RubyRegex::TwitterUsername
+ RubyRegex::DeliciousUsername
+ RubyRegex::SlidesahreUsername
+ RubyRegex::GithubUsername
+
</pre>
<h2>Rails</h2>
<pre>
# config/environment.rb
config.gem ruby_regex
-
+
+
# models
validates_format_of :email, :with =&gt; RubyRegex::Email
+
</pre>
-<hr size="1"></hr><p>
+<h2>Contribute</h2>
+<p>
+Of course, contributions will be apreciated.
+</p>
+<p>
+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
+</p>
+<h2>Contributors</h2>
+<ul>
+<li><p>
+Lleïr Borràs
+</p>
+</li>
+<li><p>
+Jaime Iniesta
+</p>
+</li>
+</ul>
+<hr style="height: 1px"></hr><p>
<a href="RubyRegex.html">RubyRegex</a> is released under the MIT-License
and is Copyright &#169;2010 Emili Parreño.
</p>
View
42 doc/RubyRegex.html
@@ -22,6 +22,16 @@
<body class="module">
<div id="metadata">
+ <div id="home-metadata">
+ <div id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="./index.html">Home</a>
+ <a href="./index.html#classes">Classes</a>
+ <a href="./index.html#methods">Methods</a>
+ </h3>
+ </div>
+ </div>
+
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
@@ -62,6 +72,8 @@ <h3 class="section-header">Files</h3>
<li class="file"><a href="./CHANGELOG.html">CHANGELOG</a></li>
+ <li class="file"><a href="./LICENSE.html">LICENSE</a></li>
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
@@ -179,12 +191,40 @@ <h3 class="section-header">Constants</h3>
</p></dd>
+ <dt><a name="TwitterUsername">TwitterUsername</a></dt>
+
+ <dd class="description"><p>
+Twitter username
+</p></dd>
+
+
+ <dt><a name="GithubUsername">GithubUsername</a></dt>
+
+ <dd class="description"><p>
+Github username
+</p></dd>
+
+
+ <dt><a name="SlideshareUsername">SlideshareUsername</a></dt>
+
+ <dd class="description"><p>
+Slideshare username
+</p></dd>
+
+
+ <dt><a name="DeliciousUsername">DeliciousUsername</a></dt>
+
+ <dd class="description"><p>
+Del.icio.us username
+</p></dd>
+
+
<dt><a name="Email">Email</a></dt>
<dd class="description"><p>
RFC822 <a href="RubyRegex.html#Email">Email</a> Address Regex
</p>
-<hr size="10"></hr><p>
+<p>
Originally written by Cal Henderson c.f. <a
href="http://iamcal.com/publish/articles/php/parsing_email/">iamcal.com/publish/articles/php/parsing_email/</a>
</p>
View
6 doc/created.rid
@@ -1 +1,5 @@
-Thu, 06 May 2010 18:26:46 +0200
+Tue, 18 May 2010 06:42:51 +0200
+CHANGELOG Tue, 18 May 2010 06:36:21 +0200
+LICENSE Fri, 30 Apr 2010 22:17:09 +0200
+README.rdoc Tue, 18 May 2010 06:39:35 +0200
+lib/ruby_regex.rb Tue, 18 May 2010 06:42:48 +0200
View
0  doc/images/brick.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/brick_link.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/bullet_black.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/bullet_toggle_minus.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/bullet_toggle_plus.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/date.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/find.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/package.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/page_green.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/page_white_text.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/page_white_width.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/plugin.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/ruby.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/tag_green.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/wrench.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/wrench_orange.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  doc/images/zoom.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 doc/index.html
@@ -32,19 +32,21 @@
<li class="file"><a href="CHANGELOG.html">CHANGELOG</a></li>
+ <li class="file"><a href="LICENSE.html">LICENSE</a></li>
+
<li class="file"><a href="README_rdoc.html">README.rdoc</a></li>
</ul>
- <h2>Classes/Modules</h2>
+ <h2 id="classes">Classes/Modules</h2>
<ul>
<li class="module"><a href="RubyRegex.html">RubyRegex</a></li>
</ul>
- <h2>Methods</h2>
+ <h2 id="methods">Methods</h2>
<ul>
</ul>
View
10 doc/js/darkfish.js
@@ -1,10 +1,10 @@
/**
- *
+ *
* Darkfish Page Functions
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
- *
+ *
* Author: Michael Granger <mgranger@laika.com>
- *
+ *
*/
/* Provide console simulation for firebug-less environments */
@@ -58,7 +58,7 @@ function hookQuickSearch() {
var toggle = $(this).parents('.section').find('h3 .search-toggle');
// console.debug( "Toggle is: %o", toggle );
var qsbox = $(this).parents('form').get( 0 );
-
+
$(this).quicksearch( this, searchElems, {
noSearchResultsIndicator: 'no-class-search-results',
focusOnLoad: false
@@ -87,7 +87,7 @@ function highlightTarget( anchor ) {
function highlightLocationTarget() {
console.debug( "Location hash: %s", window.location.hash );
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
-
+
var anchor = window.location.hash.substring(1);
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
View
14 doc/js/quicksearch.js
@@ -1,10 +1,10 @@
/**
- *
+ *
* JQuery QuickSearch - Hook up a form field to hide non-matching elements.
* $Id: quicksearch.js 53 2009-01-07 02:52:03Z deveiant $
- *
+ *
* Author: Michael Granger <mgranger@laika.com>
- *
+ *
*/
jQuery.fn.quicksearch = function( target, searchElems, options ) {
// console.debug( "Quicksearch fn" );
@@ -17,7 +17,7 @@ jQuery.fn.quicksearch = function( target, searchElems, options ) {
noSearchResultsIndicator: null
};
if ( options ) $.extend( settings, options );
-
+
return jQuery(this).each( function() {
// console.debug( "Creating a new quicksearch on %o for %o", this, searchElems );
new jQuery.quicksearch( this, searchElems, settings );
@@ -56,7 +56,7 @@ jQuery.quicksearch = function( searchBox, searchElems, settings ) {
case 8:
return true;
break;
-
+
// Only allow valid search characters
default:
return validQSChar( e.charCode );
@@ -88,7 +88,7 @@ jQuery.quicksearch = function( searchBox, searchElems, settings ) {
var searchText = searchBox.value;
var pat = new RegExp( searchText, "im" );
var shownCount = 0;
-
+
if ( settings.noSearchResultsIndicator ) {
$('#' + settings.noSearchResultsIndicator).hide();
}
@@ -96,7 +96,7 @@ jQuery.quicksearch = function( searchBox, searchElems, settings ) {
// All elements start out hidden
$(searchElems).each( function(index) {
var str = $(this).text();
-
+
if ( pat.test(str) ) {
shownCount += 1;
$(this).fadeIn();
View
2  doc/lib/ruby_regex_rb.html
@@ -24,7 +24,7 @@
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
- <dd class="modified-date">Thu May 06 18:23:11 +0200 2010</dd>
+ <dd class="modified-date">Tue May 18 06:42:48 +0200 2010</dd>
<dt class="requires">Requires</dt>
View
82 doc/rdoc.css
@@ -1,9 +1,9 @@
/*
* "Darkfish" Rdoc CSS
* $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
- *
+ *
* Author: Michael Granger <ged@FaerieMUD.org>
- *
+ *
*/
/* Base Green is: #6C8C22 */
@@ -11,7 +11,7 @@
*{ padding: 0; margin: 0; }
body {
- background: #efefef;
+ background: #efefef;
font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
}
body.class, body.module, body.file {
@@ -29,11 +29,13 @@ h1 {
}
h2,h3,h4 { margin-top: 1.5em; }
-a {
+:link,
+:visited {
color: #6C8C22;
text-decoration: none;
}
-a:hover {
+:link:hover,
+:visited:hover {
border-bottom: 1px dotted #6C8C22;
}
@@ -100,8 +102,8 @@ body.file p {
line-height: 160%;
list-style: none;
}
-.indexpage ul a,
-.file #documentation ul a {
+.indexpage ul :link,
+.indexpage ul :visited {
font-size: 16px;
}
@@ -119,6 +121,10 @@ body.file p {
.indexpage li.file {
background: url(images/page_white_text.png) no-repeat left 4px;
}
+.file li p,
+.indexpage li p {
+ margin: 0 0;
+}
/* @end */
@@ -170,6 +176,10 @@ body.file p {
-webkit-border-top-right-radius: 4px;
border-bottom: 1px solid #aaa;
}
+#metadata #home-section h3.section-header {
+ border-bottom: 0;
+}
+
#metadata ul,
#metadata dl,
#metadata p {
@@ -258,8 +268,12 @@ ul.link-list .type {
margin: 1em 0.4em;
}
+#description li p {
+ margin: 0;
+}
+
#description ul {
- margin-left: 2em;
+ margin-left: 1.5em;
}
#description ul li {
line-height: 1.4em;
@@ -340,9 +354,6 @@ ul.link-list .type {
#documentation .method-detail:hover {
background-color: #f1edba;
}
-#documentation .method-alias {
- font-style: oblique;
-}
#documentation .method-heading {
position: relative;
padding: 2px 4px 0 20px;
@@ -351,7 +362,8 @@ ul.link-list .type {
color: #333;
background: url(images/brick.png) no-repeat left bottom;
}
-#documentation .method-heading a {
+#documentation .method-heading :link,
+#documentation .method-heading :visited {
color: inherit;
}
#documentation .method-click-advice {
@@ -391,6 +403,9 @@ ul.link-list .type {
#documentation .method-description p + p {
margin-bottom: 0.5em;
}
+#documentation .method-description ul {
+ margin-left: 1.5em;
+}
#documentation .attribute-method-heading {
background: url(images/tag_green.png) no-repeat left bottom;
@@ -413,13 +428,6 @@ ul.link-list .type {
/* @group Source Code */
-a.source-toggle {
- font-size: 90%;
-}
-a.source-toggle img {
-
-}
-
div.method-source-code {
background: #262626;
color: #efefef;
@@ -433,22 +441,20 @@ div.method-source-code pre {
background: inherit;
padding: 0;
color: white;
- overflow: hidden;
+ overflow: auto;
}
/* @group Ruby keyword styles */
-.standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
-
-.ruby-constant { color: #7fffd4; background: transparent; }
-.ruby-keyword { color: #00ffff; background: transparent; }
-.ruby-ivar { color: #eedd82; background: transparent; }
-.ruby-operator { color: #00ffee; background: transparent; }
+.ruby-constant { color: #7fffd4; background: transparent; }
+.ruby-keyword { color: #00ffff; background: transparent; }
+.ruby-ivar { color: #eedd82; background: transparent; }
+.ruby-operator { color: #00ffee; background: transparent; }
.ruby-identifier { color: #ffdead; background: transparent; }
-.ruby-node { color: #ffa07a; background: transparent; }
-.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
-.ruby-regexp { color: #ffa07a; background: transparent; }
-.ruby-value { color: #7fffd4; background: transparent; }
+.ruby-node { color: #ffa07a; background: transparent; }
+.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
+.ruby-regexp { color: #ffa07a; background: transparent; }
+.ruby-value { color: #7fffd4; background: transparent; }
/* @end */
/* @end */
@@ -524,11 +530,14 @@ div.method-source-code pre {
color:#666666;
}
-#TB_window a:link {color: #666666;}
-#TB_window a:visited {color: #666666;}
-#TB_window a:hover {color: #000;}
-#TB_window a:active {color: #666666;}
-#TB_window a:focus{color: #666666;}
+#TB_window :link,
+#TB_window :visited { color: #666666; }
+#TB_window :link:hover,
+#TB_window :visited:hover { color: #000; }
+#TB_window :link:active,
+#TB_window :visited:active { color: #666666; }
+#TB_window :link:focus,
+#TB_window :visited:focus { color: #666666; }
#TB_overlay {
position: fixed;
@@ -609,7 +618,8 @@ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = d
color: #dedede;
height:40px;
}
-#TB_title a {
+#TB_title :link,
+#TB_title :visited {
color: white !important;
border-bottom: 1px dotted #dedede;
}
View
26 lib/ruby_regex.rb
@@ -33,9 +33,19 @@ module RubyRegex
# Validates US ZIP Code (basic and extended format)
ZIPCode = /^(\d{5}$)|(\d{5}-\d{4}$)/
- #
+ # Twitter username
+ TwitterUsername = /^([a-z0-9\_])+$/ix
+
+ # Github username
+ GithubUsername = /^([a-z0-9\_\-])+$/ix
+
+ # Slideshare username
+ SlideshareUsername = /^([a-z0-9])+$/ix
+
+ # Del.icio.us username
+ DeliciousUsername = /^([a-z0-9\_\-])+$/ix
+
# RFC822 Email Address Regex
- # --------------------------
#
# Originally written by Cal Henderson
# c.f. http://iamcal.com/publish/articles/php/parsing_email/
@@ -60,16 +70,4 @@ module RubyRegex
addr_spec = "#{local_part}\\x40#{domain}"
pattern = /\A#{addr_spec}\z/
end
-
- # Twitter username
- TwitterUsername = /^([a-z0-9\_])+$/ix
-
- # Github username
- GithubUsername = /^([a-z0-9\_\-])+$/ix
-
- # Slideshare username
- SlideshareUsername = /^([a-z0-9])+$/ix
-
- # Del.icio.us username
- DeliciousUsername = /^([a-z0-9\_\-])+$/ix
end
View
4 ruby_regex.gemspec
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = "ruby_regex"
- s.version = "0.0.4"
+ s.version = "0.0.5"
s.author = "Emili Parreno"
s.email = "emili@eparreno.com"
s.homepage = "http://github.com/eparreno/ruby_regex"
- s.date = %q{2010-05-6}
+ s.date = %q{2010-05-18}
s.description = "Ruby regular expressions library"
s.has_rdoc = true
s.rdoc_options = ["--main", "README"]
Please sign in to comment.
Something went wrong with that request. Please try again.