Hacker News new | ask | show | jobs
by 83a 4580 days ago
so how do you e.g. remove trailing whitespace?
1 comments

Is that a serious question? Almost every major language has some kind of string trim/strip function for that purpose.
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.