How to filter a string to only include characters that are allowed?

前端 未结 0 1439
灰色年华
灰色年华 2020-12-19 23:40

I am trying to filter a string to only contain characters that I allow. For example let\'s say I allow letters [A-Z] (case insensitive) and underscores (\'_\').

So le

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