Tuesday, March 03, 2009

You had me at /\s*,\s*/

Do you regexp? I do. Recently I received this in email:


While testing foo.pl, I discovered that my code to read the PARAMETER line from the ADDRESS_FILE was too limiting. I was assuming that the parameters themselves would only be separated with /,/ and not /\s*,\s*/


Leaving aside the relative correctness of the first vs. the latter regexp - I think it is so cool that this wizard developer has faith that I'll know what he is talking about. Keep in mind, I'm a hardware engineer.

Sometimes my job makes me feel pretty good. Little things you know?

1 comment: