RE: regex of the month (decade?)
[email protected] ("Meryll Larkin") Mon, 7 Jan 2008 17:40:24 -0800
| Newsgroups | perl.fwp |
|---|---|
| Message-ID | <001001c85197$708eafd0$0501a8c0@silver> |
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