例: -this--is---a-test--
-this--is---a-test--
我想要的是: this-is-a-test
this-is-a-test
谢谢你的回答!:)
php regex
php ×1
regex ×1