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});