当前位置:编程学习 > JSP >>

我有这样一段JSP代码,想把中间的/list/3/88/85423.html全部替换为<%=basePath%>product/show?category=

</div> <div class="box"> <a href="/list/3/88/47529.html" target="_blank" class="big"> 饰品</a> <a href="/list/3/88/47523.html" target="_blank"> 项链</a> <a href="/list/3/88/49001.html" target="_blank"> 耳饰</a> <a href="/list/3/88/47515.html" target="_blank"> 发饰</a> <a href="/list/3/88/47518.html" target="_blank"> 手镯</a> <a href="/list/3/88/47526.html" target="_blank"> 手链</a> </div> <div class="box"> <a href="/search/ta7R1A-c-28.html" target="_blank" class="big"> 眼镜</a> <a href="/list/3/88/48725.html" target="_blank" class="orange"> 太阳镜</a> <a href="/list/3/88/44569.html" target="_blank"> 眼镜架</a> <a href="/list/3/88/81815.html" target="_blank"> 戒烟</a> <a href="/list/0/68/5.html" target="_blank"> Zippo</a>
补充:怎么用正则表达式实现替换功能
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,