Hacker News new | ask | show | jobs
by alayne 4580 days ago
Is that a serious question? Almost every major language has some kind of string trim/strip function for that purpose.
1 comments

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.