Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have a string and I want to remove anything that is not a letter. I know I can use the replace method, but then I have to check for everything. I hope there is a better way of doing this.
Posted
Check out MSDN on "Regex.Replace()". Looks like their sample does a reimplementation of ToUpper(), but you can slightly modify that code in CapText() to return an empty string.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...