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

Pages: (2): « First « 1 [ 2 ] Last »
[RESOLVED] JavaScript: Remove <table>blah</table>
Author: Message:
macgyver08
Junior Member
**

Avatar
Hakuna matata!

Posts: 23
34 / 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
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: JavaScript: Remove <table>blah</table>
Well done, it's a lot more elegant than my solution, but couldn't remember the right syntax for it at the time :p
<Eljay> "Problems encountered: shit blew up" :zippy:
01-29-2010 11:48 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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