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 ""
.
精彩评论