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
  1. Home
  2. General Programming
  3. Visual Basic
  4. hi how this string is splited and how to eliminate special characters

hi how this string is splited and how to eliminate special characters

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
6 Posts 5 Posters 0 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.
  • L Offline
    L Offline
    lakshmichawala
    wrote on last edited by
    #1

    iam a having a string like this 'hi this is "john" iam a 'good,' boy:' so how can i get the words like this hi this is john iam a good boy mean even though there are special characters we should get ony srtings

    C N 2 Replies Last reply
    0
    • L lakshmichawala

      iam a having a string like this 'hi this is "john" iam a 'good,' boy:' so how can i get the words like this hi this is john iam a good boy mean even though there are special characters we should get ony srtings

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      split is the right word. The string class has a split method.

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      1 Reply Last reply
      0
      • L lakshmichawala

        iam a having a string like this 'hi this is "john" iam a 'good,' boy:' so how can i get the words like this hi this is john iam a good boy mean even though there are special characters we should get ony srtings

        N Offline
        N Offline
        Noctris
        wrote on last edited by
        #3

        I would be saying first replace all characters different then 0123456789abcdefghijklmnopqrstuvwxyz with "" EXCEPT spaces. Then split on the on you space and voila !

        Do Or Don't, there is no "try catch ex as exception end try"

        D 1 Reply Last reply
        0
        • N Noctris

          I would be saying first replace all characters different then 0123456789abcdefghijklmnopqrstuvwxyz with "" EXCEPT spaces. Then split on the on you space and voila !

          Do Or Don't, there is no "try catch ex as exception end try"

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          What the.... :wtf:

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          M N 2 Replies Last reply
          0
          • D Dave Kreskowiak

            What the.... :wtf:

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            He's talking about getting rid of the embedded double and single quotes in the string!

            Never underestimate the power of human stupidity RAH

            1 Reply Last reply
            0
            • D Dave Kreskowiak

              What the.... :wtf:

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              N Offline
              N Offline
              Noctris
              wrote on last edited by
              #6

              I know my thought process sometimes is funny to say the least, but i think this one is actually correct ;-)

              Do Or Don't, there is no "try catch ex as exception end try"

              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