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. C#
  4. question about string "\" sign

question about string "\" sign

Scheduled Pinned Locked Moved C#
question
5 Posts 4 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.
  • G Offline
    G Offline
    Green Fuze
    wrote on last edited by
    #1

    Hey ;-) I'm looking for a list with all the "\" signals for strings. I do know that \n is start another line, and \t is for tabbing, but what \r is doing, and what other signs exist. thanks!

    L M 2 Replies Last reply
    0
    • G Green Fuze

      Hey ;-) I'm looking for a list with all the "\" signals for strings. I do know that \n is start another line, and \t is for tabbing, but what \r is doing, and what other signs exist. thanks!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Copied from MSDN Library: Escaped character Description \a Matches a bell (alarm) \u0007. \b Matches a backspace \u0008 \t Matches a tab \u0009. \r Matches a carriage return \u000D. \v Matches a vertical tab \u000B. \f Matches a form feed \u000C. \n Matches a new line \u000A. \e Matches an escape \u001B. \040 Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. (For more information, see Backreferences.) For example, the character \040 represents a space. \x20 Matches an ASCII character using hexadecimal representation (exactly two digits). \cC Matches an ASCII control character; for example, \cC is control-C. \u0020 Matches a Unicode character using hexadecimal representation (exactly four digits).

      D 1 Reply Last reply
      0
      • L Lost User

        Copied from MSDN Library: Escaped character Description \a Matches a bell (alarm) \u0007. \b Matches a backspace \u0008 \t Matches a tab \u0009. \r Matches a carriage return \u000D. \v Matches a vertical tab \u000B. \f Matches a form feed \u000C. \n Matches a new line \u000A. \e Matches an escape \u001B. \040 Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. (For more information, see Backreferences.) For example, the character \040 represents a space. \x20 Matches an ASCII character using hexadecimal representation (exactly two digits). \cC Matches an ASCII control character; for example, \cC is control-C. \u0020 Matches a Unicode character using hexadecimal representation (exactly four digits).

        D Offline
        D Offline
        Daniel Grunwald
        wrote on last edited by
        #3

        This seems to be copied from the documentation about regular expressions, not the C# documentation. The escapes are quite similar, though.

        L 1 Reply Last reply
        0
        • D Daniel Grunwald

          This seems to be copied from the documentation about regular expressions, not the C# documentation. The escapes are quite similar, though.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          You're right, that's the first one I found. But as you said they're pretty much the same. I just removed some of the regex-specific stuff from my original posting to not to confuse him.

          1 Reply Last reply
          0
          • G Green Fuze

            Hey ;-) I'm looking for a list with all the "\" signals for strings. I do know that \n is start another line, and \t is for tabbing, but what \r is doing, and what other signs exist. thanks!

            M Offline
            M Offline
            Michael P Butler
            wrote on last edited by
            #5

            What character escape sequences are available?[^] Michael CP Blog [^] Development Blog [^]

            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