Posted By

pablazo on 11/06/07


Tagged

javascript regexp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

arcturus
vali29


javascript trim with regexp


 / Published in: JavaScript
 

  1. text = text.replace(/^\s+|\s+$/g, '');

Report this snippet  

You need to login to post a comment.