A
Ari Brown
TextualRegexp version 1.0.0 has been released!
* <by Ari Brown and Robert Kremme>
* <http://texrex.rubyforge.com>
## FEATURES/PROBLEMS:
Incompatible with 1.9, as far as we know. Technically, it supports
everything current RegExp does.
## SYNOPSIS:
Password = TextualRegexp.new do
anchor :beginning
group :capture do
any :letter
repeat(4..13) do
any :char
end
any :digit
end
end
Or the ever-loved email address....
Email = TextualRegexp.new do
anchor :beginning
group :capture do
at_least_once { any "a-z" + "0-9" + "_" + "." }
end
literal "@"
group :capture do
repeat(1..4) do
at_least_once { any "a-z" + "0-9" + "_" }
literal "."
end
any %w{com edu org co.uk com.au}
end
end
Changes:
## 1.0.0 / 2007-09-06
* 1 major enhancement
* Birthday!
* <by Ari Brown and Robert Kremme>
* <http://texrex.rubyforge.com>
-------------------------------------------------------|
~ Ari
crap my sig won't fit
* <by Ari Brown and Robert Kremme>
* <http://texrex.rubyforge.com>
## FEATURES/PROBLEMS:
Incompatible with 1.9, as far as we know. Technically, it supports
everything current RegExp does.
## SYNOPSIS:
Password = TextualRegexp.new do
anchor :beginning
group :capture do
any :letter
repeat(4..13) do
any :char
end
any :digit
end
end
Or the ever-loved email address....
Email = TextualRegexp.new do
anchor :beginning
group :capture do
at_least_once { any "a-z" + "0-9" + "_" + "." }
end
literal "@"
group :capture do
repeat(1..4) do
at_least_once { any "a-z" + "0-9" + "_" }
literal "."
end
any %w{com edu org co.uk com.au}
end
end
Changes:
## 1.0.0 / 2007-09-06
* 1 major enhancement
* Birthday!
* <by Ari Brown and Robert Kremme>
* <http://texrex.rubyforge.com>
-------------------------------------------------------|
~ Ari
crap my sig won't fit