in reply to Is Text::RE::Foo a good name space?
Not a comment on the question, but on the regexp.
/[a-b]|[c-d]|[e-f]/
can be written as a single character class
/[a-bc-de-f]/
Also, it might be easier to specify what's valid and negate the set.
/[\x00-@\[-`]...]/
would become
/[^a-zA-Z...]/
Both are equivalent, but the latter is more readable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is Text::RE::Foo a good name space?
by fernandes (Monk) on Oct 11, 2007 at 18:04 UTC | |
by ikegami (Patriarch) on Oct 11, 2007 at 18:42 UTC | |
by blah (Novice) on Oct 12, 2007 at 16:57 UTC |