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:
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...)
And Danny comes out of NOWHERE to win the double bonus! Well done!
Post a Comment