View Single Post
Old 09-23-2010, 11:54 AM   #29
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Manichean View Post
Thanks for the link. I think, once I refresh my memory on some of the things I learned in computer sciences, that I should be able to understand that.
I've never had a CS course (or even a programming course), but I'd like to say thanks for the link, too. It was an interesting read. As far as I'm concerned, Charles can set <professorial mode = "ON"> at any time. I always learn something new.

As to the problem, I'm always up for a challenge, particularly one that tells me I "will fail." I'll quote the problem statement from the professor:
Quote:
For fun, try to write a regular expression that matches any palindrome. (http://en.wikipedia.org/wiki/Palindrome. Examples: abcdedcba or 'madam im adam' with spaces ignored.) You will fail.
The first rule of taking a test, even one for fun: read the problem statement very carefully. How about this regular expression for an answer:
Code:
.*
I believe it succeeds at matching "any palindrome."
Starson17 is offline