Categories
- agile (3)
- algorithms (16)
- css (29)
- download (3)
- featured (46)
- flex 3 (25)
- javascript (138)
- micro tutorial (202)
- PHP (108)
- portfolio (5)
- snippets (7)
- video (1)
- web development (167)
- zend framework (80)
Category Archives: web development
Flexible JavaScript – Replace in a String
Here’s yet another example of the JavaScript flexibility. You can simply call .replace() on every string and pass a regex as a parameter! var str = ‘my simple string’; str.replace(/ /g, ‘-’); // now ‘str’ will contain ‘my-simple-string’







