I would like to write a javascript plug in which can string manipulations something like substring, replace, trim and customized user functions.
Where from should i start to write (if there is no this kind of plug-in) ?
like:
$("my string will be this").substr("will","would",{first});
or
$("my string will be this").replace("will","would",{fromLast,3});
http://stilldesigning.com/dotstring/ ports prototype string functions to jQuery. Take a look at the code.