What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [RESOLVED] Need help with JavaScript replace()

[RESOLVED] Need help with JavaScript replace()
Author: Message:
macgyver08
Junior Member
**

Avatar
Hakuna matata!

Posts: 23
35 / Male / Flag
Joined: Feb 2007
O.P. [RESOLVED] Need help with JavaScript replace()
I found a regular expression that will strip my string of every html tag...

code:
var stripped = htmlStr.replace(/(<([^>]+)>)/ig,"");

Well, I also want it to strip every thing between parentheses, square brackets, and replace "&#160;" with a space.

It would be really cool if you could explain how to do this as well, because the stuff in the above code after "replace" confuses me. I have no idea how that's working.

This post was edited on 01-30-2010 at 12:06 AM by macgyver08.
01-28-2010 11:03 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[RESOLVED] Need help with JavaScript replace() - by macgyver08 on 01-28-2010 at 11:03 AM
RE: Need help with JavaScript replace() - by stoshrocket on 01-28-2010 at 12:18 PM
RE: Need help with JavaScript replace() - by macgyver08 on 01-28-2010 at 01:18 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On