Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. hi i need a function in c#

hi i need a function in c#

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sooreeagt
    wrote on last edited by
    #1

    i need a function like it sholud delete all special characters and spaces in the given name ony a to z and numbers 0 to 9 has to come plz help me out suresh

    Suresh.R

    C N 2 Replies Last reply
    0
    • S sooreeagt

      i need a function like it sholud delete all special characters and spaces in the given name ony a to z and numbers 0 to 9 has to come plz help me out suresh

      Suresh.R

      C Offline
      C Offline
      coolestCoder
      wrote on last edited by
      #2

      Hi, Use the ToCharArray method of the string and check whether each of the characters is numeric, special character or something else... as simple as it sound to be.


      "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


      coolestCoder

      1 Reply Last reply
      0
      • S sooreeagt

        i need a function like it sholud delete all special characters and spaces in the given name ony a to z and numbers 0 to 9 has to come plz help me out suresh

        Suresh.R

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Use a regular expression -- [a-z][0-9]


        only two letters away from being an asset

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups