07-29-2009, 02:38 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
Hey Ya! Thanks you guys.
In a string link this:
Code:
var clean = title.replace(/\s+/g, "-");
How do you put this: (/W)+
Like so:
Code:
var clean = title.replace(/(/W)+/g, "-");
? It doesn't like it... Do I need to escape the + ?
Confusing stuff, but essential!
|
|
|
|