Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用(用,例如)更改<*>文本文件每一行中所有出现的 (每行总共 5 个)?<*>preg_replace|
<*>
preg_replace
|
我的代码是:
preg_replace("/<*\>/", "|", $text);
你应该逃避*
*
preg_replace("/<\*>/", "|", $text);