Thursday, March 19, 2009

Does anyone speak my language?

If I told you

[a-zA-Z_][a-zA-Z_0-9]*(\([^)]*\))?(\.[a-zA-Z_][a-zA-Z_0-9]*(\([^)]*\))?)+

would you understand what I mean?

Sometimes I feel like only the computer truly understands me...

DISCLAIMER: No, I am not actually feeling depressed or alone.  But I am a computer programmer, and sometimes we have to type ridiculous things to get our work done.  This one such example from today, and I felt like sharing.  ;)

Oh, and bonus points to the first person who can tell me what kind of syntax that is.  Double bonus for what it does.  :D

2 comments:

Suzy said...

Danny: this is regex. it recognizes a property or function call in a c related language. (ex. object.property or function(parameters).property.function(more parameters) etc...)

David Merriman said...

And Danny comes out of NOWHERE to win the double bonus! Well done!