Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged replace



« Prev 1 Next »
  1. FAV

    Converte tutti i newline in tag br

    Converte tutti gli \n in <br>
    JavaScript 4 views posted 8 years ago by kajinka13
  2. FAV

    Search and don\'t replace

    two awesome bits: using ''.replace() perform an action (other than replacing it) on some text, and a simple way to concatenate strings with a separator (retardedly simple but it always confuses me)
    JavaScript 3 views posted 8 years ago by ultranaut
  3. FAV

    Replace domain on all href attributes

    JavaScript 2 views posted 8 years ago by odenijs
  4. FAV

    String slash replace

    JavaScript 0 views posted 8 years ago by dato
  5. FAV

    Supplanting Data with Equations

    JavaScript 1 views posted 8 years ago by mejamiewilson
  6. FAV

    jQuery Image Replace using substring

    image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.
    JavaScript 2 views posted 8 years ago by inreflection7
  7. FAV

    Replace (update) a View in a ScrollableView in Titanium Mobile

    It’s pretty straightforward, we loop the existing Views of the ScrollableView and copy each View, replacing the one to be change, to a new array. Then we tell the ScrollableView to use our new Views-array for it’s Views. I hope this helps someon...
    JavaScript 2 views posted 8 years ago by chlab
  8. FAV

    javascript replace all instances in a string

    Normal replace() function only replaces first instance.
    JavaScript saved by 2 people 2 views posted 9 years ago by rumremix
  9. FAV

    No letters - only digits as input

    useful if you only want digits as input
    JavaScript 0 views posted 9 years ago by webstylr
  10. FAV

    Javascript string replace (all occurrences)

    JavaScript saved by 2 people 1 views posted 9 years ago by fengelz
  11. FAV

    JAVASCRIPT : Redirection en javascript avec window.location.replace()

    JavaScript saved by 3 people 4 views posted 9 years ago by alexandrepayet
  12. FAV

    Essential Javascript Techniques

    These are essential javascript techniques every javascriptr must know. I will be adding more to this list, let me know what you'd like to see. Thanks!
    JavaScript 0 views posted 9 years ago by alvincrespo
  13. FAV

    Replace Newlines with BR, String Prototype

    This will need to be either embeded or included and you can then just use this as such myNewString = myStringVariable.nl2br();
    JavaScript 0 views posted 10 years ago by boondoklife
  14. FAV

    ByteArray.replace

    JavaScript 0 views posted 10 years ago by aadsm
  15. FAV

    Replace de caracteres especiais por seu equivalente sem acento

    JavaScript 0 views posted 10 years ago by nalmeida
  16. FAV

    Replace space with _

    I'll never learn how to use this Markdown system. Anyway, here is the fixed code based on my comment on the following page: http://snipplr.com/view/14206/replace-spaces-with-underscores/ I'm sorry, I don't mean to hijack the code. :(
    JavaScript 4 views posted 10 years ago by duniyadnd
  17. FAV

    OnKeyUp fix alphanumerical chars

    strip non alphanumerical characters while typing
    JavaScript saved by 4 people 1 views posted 11 years ago by ginoplusio
  18. FAV

    jQuery Attributes/attr

    Ability to change/add attributes to HTML using JQuery
    JavaScript saved by 2 people 1 views posted 11 years ago by davebowker
  19. FAV

    String.replaceAll method implementation

    This snippet adds a replaceAll method to the String prototype, so that you can call it later like this: "test string".replaceAll("s", "-"); // returns "te-t -tring"
    JavaScript saved by 2 people 0 views posted 12 years ago by alvaroisorna
  20. FAV

    Javascript search and replace

    Why doesn't this work?
    JavaScript saved by 3 people 2 views posted 12 years ago by gaunab
  21. FAV

    Regular Expressions simple strings search/replace escape method (with RE speed enhancment - precompilation)

    Usefull Regular Expressions enhancement. Simplifies standard string operations escaping special chars. And also saves precompiled REs for a speed increase.
    JavaScript saved by 2 people 3 views posted 13 years ago by cochambre
  22. FAV

    Replace newlines with BR (platform safe)

    JavaScript saved by 6 people 6 views posted 13 years ago by cochambre
« Prev 1 Next »