Home
Sign Up
Sign In
V2EX
›
PHP
求: php 正则替换 html 标签内容,代码一段
mfanming
·
Nov 1, 2016
· 2059 views
This topic created in 3570 days ago, the information mentioned may be changed or developed.
$string = '参赛第[b]5[/b]天';
1.其中 5 是个不确定的数字,需要把它替换成其它数字
2.[b][/b]这个标签正文第一次出现的时候匹配上,就对了
正则白痴一枚,一条简单的都没写过
求一段完整语句
No Comments Yet
替换
PHP
HTML
数字
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
4412 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms ·
UTC 10:09
·
PVG 18:09
·
LAX 03:09
·
JFK 06:09
♥ Do have faith in what you're doing.
❯