alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user tom.naves
tom.naves (10)

Replace String with Prototype

This code uses the prototype to create a method in the class String to replace excerpts of a text on the other, similar to replace Javascript.
Listing url: www.wevertonnaves.com.br/blog/2008/02/29/r...
3061 downloads, 13881 views
Download (204.15 KB)

Comments

You need to login to post a comment.

user glazok90
glazok90 15 years ago

Enter this data:
text: "ab"
replace: "ab"
substitute: "abab"
and FUN!!!

user Nagnag
Nagnag 17 years ago

This is very good. However, you may want to add a check - because I broke it... I put in 15 and then told it to find 15 and replace it with 15-5.

user kingofrespect
kingofrespect 17 years ago

I looooooooooooooooooove this so much
you are good thinker