Repp'r :: Fast Text Replacements
Find and Replace with live previews.
Options
Replace
With
Apply
replacements
History
Show Live Preview
Use /RegExp/ mode
Show HTML Code
Done
[{"name":"getWordCount","desc":"getWordCount","id":"21866851","size":78,"value":"String.prototype.getWordCount=function(s){return this.split(/\\w\\s/g).length ;}","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"substring handlers","desc":"substring handlers","id":"11900152","size":309,"value":"String.prototype.between= function(n,m){t=this; s=(t.indexOf(n))+n.length; return t.slice(s, t.indexOf(m)) };\u000aString.prototype.after= \u0009\u0009function(delm){t=this; s=(t.indexOf(delm))+delm.length; return t.substr(s) };\u000aString.prototype.before= \u0009function(delm){s=(this.indexOf(delm)-1); return this.slice(0,s) };\u000a","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"vb protos","desc":"vb protos","id":"36759719","size":186,"value":"String.prototype.left=\u0009\u0009\u0009function(p){return this.slice(0,p);}\u000aString.prototype.right=\u0009\u0009function(p){return this.substr(p);}\u000aString.prototype.mid=\u0009\u0009\u0009function(l,r){return this.slice(r,l);}\u000a","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"prepend","desc":"prepend","id":"22754800","size":84,"value":"String.prototype.prepend=function(tx){\u000a return \u0009( tx + this);\u000a}//end proto prepend","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"rot-13","desc":"rot-13","id":"71029702","size":194,"value":"String.prototype.rot13 = function(){ //v1.0\u000a\u0009return this.replace(/[a-zA-Z]/g, function(c){\u000a\u0009\u0009return String.fromCharCode((c <= \"Z\" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);\u000a\u0009});\u000a};","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"div","desc":"div","id":"69569022","size":70,"value":"String.prototype.div=function(){return \"
\" + this + \"<\\/div>\" }","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"words","desc":"words","id":"69283549","size":119,"value":"//puts each word of a string in a new array element.\u000aString.prototype.words=function(n,delm){ return this.split(/\\W/g)}","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"vertical","desc":"vertical","id":"37867598","size":181,"value":"//puts each letter of a string on a new line. if (!!ht) then use
instead of newline\u000aString.prototype.vertical=function(ht){r=this.split('') ; return r.join(ht?\"
\": \"\\n\");} ","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"to Element Object","desc":"to Element Object","id":"61126251","size":0,"value":"","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"reverse","desc":"reverse","id":"82779877","size":86,"value":" String.prototype.reverse = function(){ return (this.split(\"\").reverse().join(\"\")); }","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"},{"name":"fn","desc":"fn","id":"31906256","size":152,"value":"String.prototype.fn=function(){\u000a var r=[].slice.call(arguments);\u000areturn Function.apply(\"\", r.length?r.concat(this):[\"a\",\"b\",\"c\",\"d\", \"return \"+this]);\u000a}","cat":"","date":"Sat Nov 14 2009 22:20:45 GMT-0600 (Central Standard Time)"}]