You're right. Mistook it for (.\s) for some reason. My description of .*
still stands however.
But the following should be:
(p(ost)?[.\s]*o(ffice)?[.\s]*box)
post(anynumberofperiodsorspacecharacterclassitems)office(anynumberofperiodso
rspacecharacterclassitems)box
p(anynumberofperiodsorspacecharacterclassitems)o(anynumberofperiodsorspacech
aracterclassitems)box
p(anynumberofperiodsorspacecharacterclassitems)office(anynumberofperiodsorsp
acecharacterclassitems)box
post(anynumberofperiodsorspacecharacterclassitems)o(anynumberofperiodsorspac
echaracterclassitems)box
Steve
-----Original Message-----
From: Keith Ivey [mailto:keith@
iveys.org]
Sent: Tuesday, January 08, 2008 10:27 AM
To: Fun with Perl
Subject: Re: regex of the month (decade?)