Thread: RegEx
View Single Post
Old 07-29-2009, 02:38 PM   #4 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default

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!
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote