Home
Sign Up
Sign In
V2EX
›
PHP
求: php 正则替换 html 标签内容,代码一段
mfanming
·
Nov 1, 2016
· 1977 views
This topic created in 3515 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
·
3267 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 11:03
·
PVG 19:03
·
LAX 04:03
·
JFK 07:03
♥ Do have faith in what you're doing.
❯