hehe On Jul 27, 11:36 am, David Duymelinck <[EMAIL PROTECTED]> wrote: > Can't you make it a oneliner? > > $s = function(s) { > return eval("'" + s.replace(/#{/g, "' + ").replace(/}/g, " + '") + "'"); > > } > > more place for bloated functions :) > > -- David > > weepy schreef: > > > or even > > > $s = function(s) { > > p = s.replace(/#{/g, "' + ").replace(/}/g, " + '") > > p = "'" + p + "'" > > return eval(p) > > }
- [jQuery] ruby style string manipulation weepy
- [jQuery] Re: ruby style string manipulation Stephan Beal
- [jQuery] Re: ruby style string manipulation weepy
- [jQuery] Re: ruby style string manipulation David Duymelinck
- [jQuery] Re: ruby style string manipulation weepy
- [jQuery] Re: ruby style string manipulation Michael Geary
- [jQuery] Re: ruby style string manipulation Mateusz Misiorny