嗨,我是 javascript 的新手,我想知道如何删除除单词TB_iframeContent800之外的所有文本。最后的数字不同。
这是一个示例字符串
<iframe frameborder="0" style="width: 670px; height: 401px;" onload="tb_showIframe()" name="TB_iframeContent80" id="TB_iframeContent" src="http://www.gorgeoushentai.com/wp-admin/media-upload.php?post_id=33&" hspace="0">This feature requires inline frames. You have iframes disabled or your browser does not support them.</iframe>
我想提取TB_iframeContent80并将其存储为变量。那么如何使用带有 javascript 的正则表达式来做到这一点呢?请注意最后 2 位数字会有所不同,因为数字总是会发生变化,因此有时会变成 3 位数字。