Regex - Remove all but one

前端 未结 0 694
谎友^
谎友^ 2021-01-12 02:06

Kinda new to regex, how would i remove all characters in a string except a certain character.

Like this: Before regex:

{hi there!}

Aft

相关标签:
回答
  • 消灭零回复
提交回复
热议问题