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.
我有一些奇怪的数据库条目,看起来像这样:
$sSomeTextHere$uTextAgain$pText
我想使用正则表达式删除 $ 符号和该符号后面的一个字母。我怎样才能做到这一点?
你可以使用这个:
echo preg_replace('/\$\w/', '', $string)