News for hackers. Stuff that matters.
Re:How "junior" developers can become regex wizards by 83a on Thursday November 28, 2013 @01:43AM (#6813360)
so how do you e.g. remove trailing whitespace?
Re:How "junior" developers can become regex wizards by alayne on Thursday November 28, 2013 @01:48AM (#6813372)
Is that a serious question? Almost every major language has some kind of string trim/strip function for that purpose.
Re:How "junior" developers can become regex wizards by 83a on Thursday November 28, 2013 @02:08AM (#6813423)
good point. missed that. but does your text editor have a trim function, too?

i've thought of a case i used a regex the last time. and it was removing whitespace in some code file.