asp去除html标记与空格的正则

时间:2022-12-15 08:40:12 

function nohtml(str) 
dim re 
Set re=new RegExp 
       re.IgnoreCase =true 
       re.Global=True 
       re.Pattern="(\<.[^\<]*\>)" 
       str=re.replace(str," ") 
       re.Pattern="(\<\/[^\<]*\>)" 
       str=re.replace(str," ") 
       str=replace(str,"&nbsp;","")
       str=replace(str," ","")
       nohtml=str 
       set re=nothing 
end function

标签:asp,去除html,空格,正则
0
投稿

猜你喜欢

  • python实现弹窗祝福效果

    2021-09-08 04:22:15
  • Python实现的ini文件操作类分享

    2022-01-01 12:46:24
  • python bmp转换为jpg 并删除原图的方法

    2023-03-12 02:48:50
  • Python爬虫的两套解析方法和四种爬虫实现过程

    2022-07-07 03:40:11
  • Python学习笔记之列表推导式实例分析

    2021-04-30 15:00:38
  • 何处安放的Loading

    2011-08-10 19:11:20
  • Python numpy下几种fft函数的使用方式

    2022-06-21 07:19:55
  • ip地址和身份证的js验证代码

    2007-12-29 21:49:00
  • Javascript特效--划过放大的列表

    2008-03-21 12:18:00
  • 关于numpy和torch.tensor的张量的操作

    2023-12-30 23:35:25
  • python学习print中format的用法示例

    2023-06-03 14:21:57
  • python中将字典转换成其json字符串

    2023-10-16 23:46:41
  • 现代 javscript 编程

    2011-04-21 16:24:00
  • show一下刚做的系统登录界面

    2008-09-13 19:13:00
  • Python 实现淘宝秒杀的示例代码

    2021-02-19 14:25:39
  • python单元测试框架pytest的使用示例

    2023-01-20 05:59:27
  • python实现从ftp上下载文件的实例方法

    2021-04-24 16:37:02
  • Python 虚拟环境的价值和常用命令详解

    2022-01-04 06:02:57
  • python利用opencv调用摄像头实现目标检测

    2023-01-07 10:16:18
  • 开源MySQL公司停止提供企业版源代码tar包

    2009-01-14 13:02:00
  • asp之家 网络编程 m.aspxhome.com