开发者

regex to remove all formatting

I'm looking for a regex to remove everything except letters from a string.

E.g. "Marys Page ...." should b开发者_如何学JAVAecome "MarysPage"


The one that would be passed to tools like perl/sed/etc would be: s/[^a-zA-Z]//g


You can replace [^a-zA-Z] with "".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜