Shoutbox
latest posts
member list
search
rules
contact
login
|
register
|
shoutbox
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
Hakuna matata!
Posts: 23
35 /
/
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
01-29-2010 11:12 PM
Spunky
Former Super Mod
Posts: 3658
Reputation:
61
36 /
/
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
<Eljay> "Problems encountered: shit blew up"
01-29-2010 11:48 PM
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:
Select Rating...
5 ... Best
4
3 ... Average
2
1 ... Worst
Forum Jump:
Please select one:
--------------------
Latest Posts
Private Messages
User Control Panel
Who's Online
Search
Forum Home
Open Forum
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