I think I would rewrite 
[Oo]([Ff][Ff][Ii][Cc][Ee])?
as 
([Oo][Ff][Ff][Ii][Cc][Ee])? 

but, pardon my ignorance, won't an "i" at the end of the regex make it catch
either case?

Meryll

-----Original Message-----
From: Uri Guttman [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 2:06 PM
To: Fun with Perl
Subject: regex of the month (decade?)


^([Pp]([Oo][Ss][Tt])?[.\s]*[Oo]([Ff][Ff][Ii][Cc][Ee])?[.\s]*[Bb][Oo]
[Xx])|[Pp][Oo]([Bb]|[Xx]|[Dd][Rr][Aa][Ww][Ee][Rr]|[Ss][Tt][Oo][Ff][Ff]
[Ii][Cc][Ee]|[ ][Bb][Xx]|[Bb][Oo][Xx])|[Pp][/][Oo]|[Bb]([Xx]|[Oo][Xx]|
[Uu][Zz][Oo][Nn])|[Aa]([Pp][Aa][Rr][Tt][Aa][Dd][Oo]|[Pp][Tt][Dd][Oo])


the challenge: itemize the stupidities. the case issue is only 1! i
don't want to even post the 'spec' unless asked for it. i saw this on
usenet today.

enjoy!!

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  --------
http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and
Coding-
Search or Offer Perl Jobs  ----------------------------
http://jobs.perl.org

Reply via email to