资 源 简 介
rrex - a readable regular expression library
Intro
First the inevitable famous quote
Some people, when confronted with a problem, think
"I know, I"ll use regular expressions." Now they have two problems.
--- attributed to Jamie Zawinski in 1997
(read the full history here: http://regex.info/blog/2006-09-15/247)
rrex is a Java port of Joshua Flanagan"s Readable Regular Expressions C# library
See: http://flimflan.com/blog/ReadableRegularExpressions.aspx
The idea is to allow a programmer to express regular expressions in a syntax that
fits within a programming language rather than use a completely different syntax.
Regular expressions are often hard to write and even harder to read especially
if some time has elapsed since they were written
Example
Here"s an example of a regular expression matching social security numbers:
^d{3}