OZONE Asylum
Forums
DHTML/Javascript
Regex Help.. not working :(
This page's ID:
27777
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hey folks. Basically i want a regex for javascript that will replace any html tags in a string with their lowercase versions. So far i have [code]clipHtml = clipHtml.replace(/(<\/?[^>]*>)/g, '$1'.toLowerCase())[/code] The first part of the expression is correct and matches any tags, but the second part doesnt seem to be working. Most sites i've seen say to use $1 or \$1 or \1 or various other things to put the matched express into the replace-with part of the javascript expression. Any ideas? Thanks. [small](Edited by [url=http://www.ozoneasylum.com/user/2564]H][RO[/url] on 04-12-2006 07:18)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »