社区
ASP
帖子详情
谁能帮我写一下[url][/url]的正则替换??多谢!
qiushuiw
2004-04-07 02:49:46
<%
Intext="asdasdasdasd
sina.com.cn
asfsdfsdf"
Intext = Replace(Intext, "
Intext = Replace(Intext, "" target="_blank">", "<a href='http://")
Intext = Replace(Intext, "
", "'><a>")
response.write Intext
%>
这样输出不对,请帮忙完善一下!
...全文
74
5
打赏
收藏
谁能帮我写一下[url][/url]的正则替换??多谢!
<% Intext="asdasdasdasdsina.com.cnasfsdfsdf" Intext = Replace(Intext, "<a href="", "", "") response.write Intext %> 这样输出不对,请帮忙完善一下!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
tddw
2004-04-07
打赏
举报
回复
是javascript
你自己编一个函数把它放进去就行了。
qiushuiw
2004-04-07
打赏
举报
回复
这些是JAVASCRIPT还是ASP脚本?
pizixt
2004-04-07
打赏
举报
回复
re.Pattern="(\[URL\])(.[^\[]*)(\[\/URL\])"
strContent= re.Replace(strContent,"<A HREF=""$2"" TARGET=_blank>$2</A>")
tddw
2004-04-07
打赏
举报
回复
intext=/(\
)(\s+)(\
)/
替换后的字符串=intext.replace(“要替换的字符串”,"<a href='$2'>$2</a>")
fason
2004-04-07
打赏
举报
回复
用正则表达式
http://search.csdn.net/expert/topic/3/306/2003/1/15/1360322.xml
JavaScript使用
正则
表达式
正则
表达式(Regular Expression,在代码中常简
写
为regexregexp或RE)使用单个字符串来描述、匹配一系列符合某个句法规则的字符串搜索模式。搜索模式可用于文本搜索和文本
替换
。
设置 mock_如何通过fiddler的AutoResponder修改请求,来实现你的mock测试
有时候我们要测试的功能,因为会调用到第三方系统或接口,测试时就会收到很多限制,比如测试一个账户充值功能,如果第三方接口只提供了线上接口,那么我们测试真的需要充值真金白银。可以有没有一个办法不去充值真金白银也可以完全进行测试呢? 其中的一种解决方法就是通过mock来
替换
真实的接口返回 。 mock的实现方式有很多种,这里来介绍通过fiddler的AutoResponder来完成mock测试 。功能入...
bootdelay修改不生效_如何通过fiddler的AutoResponder修改请求,来实现你的mock测试
有时候我们要测试的功能,因为会调用到第三方系统或接口,测试时就会收到很多限制,比如测试一个账户充值功能,如果第三方接口只提供了线上接口,那么我们测试真的需要充值真金白银。可以有没有一个办法不去充值真金白银也可以完全进行测试呢? 其中的一种解决方法就是通过mock来
替换
真实的接口返回 。 mock的实现方式有很多种,这里来介绍通过fiddler的AutoResponder来完成mock测试 。功能入...
华为荣耀recovery1.0
源码链接: https://pan.quark.cn/s/a4b39357ea24 This directory contains a script ('makefsdata') to create C code suitable for httpd for given html pages (or other files) in a directory. There is also a plain C console application doing the same and extended a bit. Usage: htmlgen [targetdir] [-s] [-i]s targetdir: relative or absolute path to files to convert switch -s: toggle processing of subdirectories (default is on) switch -e: exclude HTTP header from file (header is created at runtime, default is on) switch -11: include HTTP 1.1 header (1.0 is default) if targetdir not specified, makefsdata will attempt to process files in subdirectory 'fs'.
光纤耦合器Matlab模拟.rar
光纤耦合器Matlab模拟.rar
ASP
28,403
社区成员
356,946
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章