Tags
.NET Apache Apple Bug or Feature CircleCi cleancode dartlang development drupal Eclipse feed file comparison Gedit git Gnome HQL Hyper-V IIS integration Javascript Linux Meld Microsoft NHibernate open source performance PHP Quicktime Redmine registry Remote Desktop Safari security Server TFS 2010 twitter ubuntu UX Virtual VirtualBox web WinDiff Windows XDebug XML-
Tag Archives: Javascript
String replace in Javascript
Taking a note: Javascript String.replace([pattern], [replacement]) method replaces only first occurence of the matched pattern. To replace all occurences, you’ll need a “global” flag: var str = “ABCDEFGHABCD”; //some string alert(str.replace(/A/g), “I”); //replacing each appearance //of A with an I