/ Published in: ActionScript 3
Replace "-" with anything you want to. Useful for amending URLs.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
yourString = yourString.replace(/\s+/g, '-');
URL: http://gromitski.com/blog/replacing-white-space-in-a-string/