Bra*_*cal 3 php expression preg-replace
快速的问题.
我想从以下字符串中删除sup标记,以及其中的所有内容.
$string = "Priority Mail<sup>®</sup> International";
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
我想像这样的东西会起作用:
preg_replace("(<([a-z]+)>.*?</\\1>)is","",$input);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8469 次 |
| 最近记录: |