if you're going to start combining regular expressions, you may as well condense them further.
/\b12345\b/ and /\b12346\b/
can become
/\b1234[56]\b/
and
/\b31337\b/ and /\b31338\b/
can become
/\b3133[78]\b/
and
/\b54320\b/ and /\b54321\b/
become
/\b5432[01]\b/
hope this helps some more.
Update (to jcwren):
good point. i totally agree. i didn't realize this was port numbers and that they might change in the future.
In reply to
RE: RE: I want to be a Perl Jedi
by
jlistf
in thread
I want to be a Perl Jedi
by
dru145
Title:
Use:
<p> text here (a
p
aragraph) </p>
and:
<code> code here </code>
to format your post, it's "
PerlMonks-approved HTML
":
Posts are HTML formatted.
Put
<p> </p>
tags around your paragraphs. Put
<code> </code>
tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read
Where should I post X?
if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
How do I compose an effective node title?
How do I post a question effectively?
Markup in the Monastery
Posts may use any of the
Perl Monks Approved HTML tags
:
a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
For:
Use:
&
&
<
<
>
>
[
[
]
]
Link using PerlMonks shortcuts!
What shortcuts can I use for linking?
See
Writeup Formatting Tips
and other pages linked from there for more info.