regex 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY +18 -1
- data/LICENSE +202 -21
- data/PACKAGE +7 -0
- data/PROFILE +20 -0
- data/README +76 -21
- data/bin/regex +1 -1
- data/lib/regex.rb +19 -228
- data/lib/regex/command.rb +16 -97
- data/lib/regex/extractor.rb +481 -0
- data/lib/regex/package.yml +7 -0
- data/lib/regex/replacer.rb +221 -0
- data/lib/regex/string.rb +1 -1
- data/lib/regex/templates.rb +85 -0
- data/{test/demos → qed}/regex.rdoc +5 -5
- data/qed/replacer.rdoc +57 -0
- metadata +54 -29
- data/MANIFEST +0 -25
- data/lib/regex/templates/common.rb +0 -13
- data/meta/authors +0 -2
- data/meta/created +0 -1
- data/meta/description +0 -1
- data/meta/download +0 -1
- data/meta/homepage +0 -1
- data/meta/mailinglist +0 -1
- data/meta/name +0 -1
- data/meta/repository +0 -1
- data/meta/summary +0 -1
- data/meta/title +0 -1
- data/meta/version +0 -1
data/MANIFEST
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
HISTORY
|
2
|
-
LICENSE
|
3
|
-
MANIFEST
|
4
|
-
README
|
5
|
-
bin/regex
|
6
|
-
lib/regex
|
7
|
-
lib/regex.rb
|
8
|
-
lib/regex/command.rb
|
9
|
-
lib/regex/extractor.rb
|
10
|
-
lib/regex/string.rb
|
11
|
-
lib/regex/templates
|
12
|
-
lib/regex/templates/common.rb
|
13
|
-
meta/authors
|
14
|
-
meta/created
|
15
|
-
meta/description
|
16
|
-
meta/download
|
17
|
-
meta/homepage
|
18
|
-
meta/mailinglist
|
19
|
-
meta/name
|
20
|
-
meta/repository
|
21
|
-
meta/summary
|
22
|
-
meta/title
|
23
|
-
meta/version
|
24
|
-
test/demos
|
25
|
-
test/demos/regex.rdoc
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class Regex
|
2
|
-
|
3
|
-
#
|
4
|
-
module TEMPLATES
|
5
|
-
MLTAG = /<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)<\/\1>/i
|
6
|
-
IP = /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/
|
7
|
-
EMAIL = /([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)/i
|
8
|
-
USPHONE = /(\d\d\d[-]|\(\d\d\d\))?(\d\d\d)[-](\d\d\d\d)/
|
9
|
-
RUBYBLOCK = /^=begin\s+(.*?)\n(.*?)\n=end/mi
|
10
|
-
RUBYMETHOD = /\A\s*(\#.*?)^\s*def\s+(.*?)$/mi
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
data/meta/authors
DELETED
data/meta/created
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2006-05-09
|
data/meta/description
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Regex is simple commmandline Regular Expression tool.
|
data/meta/download
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
http://github.com/proutils/regex/downloads
|
data/meta/homepage
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
http://proutils.github.com/regex
|
data/meta/mailinglist
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
http://groups.google.com/group/proutils/topics?hl=en
|
data/meta/name
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
regex
|
data/meta/repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
git://github.com/proutils/regex.git
|
data/meta/summary
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Regex is simple commmandline Regular Expression tool.
|
data/meta/title
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Regex
|
data/meta/version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.0
|