Topic: Regex Help.. not working :( |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Australia |
![]() ![]() ![]() ![]() Hey folks. code: clipHtml = clipHtml.replace(/(<\/?[^>]*>)/g, '$1'.toLowerCase())
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() ![]() ![]() ![]() Hm... As far as I see it, you're lowercasing '$1', |
Bipolar (III) Inmate From: Australia |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() Oh, it was. But '$1' toLowerCase() is still just '$1'. |