What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [RESOLVED] JavaScript: Remove <table>blah</table>

[RESOLVED] JavaScript: Remove <table>blah</table>
Author: Message:
macgyver08
Junior Member
**

Avatar
Hakuna matata!

Posts: 23
35 / Male / Flag
Joined: Feb 2007
O.P. RE: JavaScript: Remove <table>blah</table>
Hey, I found the problem. It was that what I was testing it on was on multiple lines, so I had to use the metacharacters \r and \n.

code:
html.replace(/<table(.|[\r\n])+?<\/table\>/gi, "");

Thanks for your help though! I really appreciate it :D
01-29-2010 11:12 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[RESOLVED] JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 09:32 PM
RE: JavaScript: Remove <table>blah</table> - by matty on 01-29-2010 at 09:37 PM
RE: RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 09:39 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 09:45 PM
RE: RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 09:59 PM
RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 10:03 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 10:13 PM
RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 10:18 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 10:29 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 10:40 PM
RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 11:12 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 11:48 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