Log24

Tuesday, June 1, 2004

Tuesday June 1, 2004

Filed under: General — m759 @ 3:31 PM

Seize the Day

From a March 31 entry —

A Jesuit cites Quine:

“To be is to be the value of a variable.”

— Willard Van Orman Quine, cited by Joseph T. Clark, S. J., in Conventional Logic and Modern Logic

For example, the variable

“[Day]”

in the Crystal Software program EasyPattern Helper supposedly helps to find any valid day number, 1-31, within a date, by first translating  “[Day]” into the regular expression

(?:(?:0?[1-9]|[12]\d|3[01])).

But it turns out that this expression fails to find the day “22” — at least during a trial run in the EasyPattern Helper search window.

The following seems apt:

“A tongue-in-cheek comment by programmers is worth thinking about: ‘Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems.’  Regular expressions are amazingly powerful and deeply expressive. That is the very reason writing them is just as error-prone as writing any other complex programming code.”

— David Mertz, Learning to Use Regular Expressions

The following irregular expression also seems apt:

&3#!+*^$#!!

1 Comment

  1. OK, I really don’t understand this post, but I’m giving it 2 props because it looks interesting even though it’s over my head 🙂   ~Ms. Regularly Irregular

    Comment by Margita — Tuesday, June 1, 2004 @ 7:38 PM

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress