Topic: Regex Help.. not working :( (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
posted 04-12-2006 06:55
Hey folks. code: clipHtml = clipHtml.replace(/(<\/?[^>]*>)/g, '$1'.toLowerCase())
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 04-12-2006 07:55
Hm... As far as I see it, you're lowercasing '$1', |
Bipolar (III) Inmate From: Australia |
posted 04-12-2006 10:23
mmm, yeh i ended up just doing code: clipHtml = clipHtml.replace(/(<\/?[^>]*>)/g, function(x){return x.toLowerCase()})
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 04-12-2006 17:47
Oh, it was. But '$1' toLowerCase() is still just '$1'. |