Results 1 to 6 of 6

Thread: <Resolved> vbCrLF in .NET?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    <Resolved> vbCrLF in .NET?

    I'm just wondering what's the .NET equivalant of that? I know that it works in VB.NET, but lets say you are using C# or something like that. What do they use for vbCrLf in the .NET framework?
    Last edited by MrPolite; Jul 5th, 2002 at 12:37 AM.

  2. #2
    hellswraith
    Guest
    I took this from the MSDN library...These are what I use in C#, but not sure if they work in VB.Net...who knows...lol. Good luck.

    Most of the important regular expression language operators are unescaped single characters. The escape character \ (a single backslash) signals to the regular expression parser that the character following the backslash is not an operator. For example, the parser treats an asterisk (*) as a repeating quantifier and a backslash followed by an asterisk (\*) as the Unicode character 002A.

    The character escapes listed in this table are recognized both in regular expressions and in replacement patterns.

    Escaped character Meaning
    ordinary characters Characters other than . $ ^ { [ ( | ) * + ? \ match themselves.
    \a Matches a bell (alarm) \u0007.
    \b Matches a backspace \u0008 if in a []character class; otherwise, see the note following this table.
    \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. (See Backreferences.) 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).
    \ When followed by a character that is not recognized as an escaped character, matches that character. For example, \* is the same as \x2A.

    Note The escaped character \b is a special case. In a regular expression, \b denotes a word boundary (between \w and \W characters) except within a [] character class, where \b refers to the backspace character. In a replacement pattern, \b always denotes a backspace.
    See Also

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hehe looks like C++, I think I rather keep using the dear old vbCrLf
    tnx

  4. #4
    Sascha
    Guest
    There is another one called 'Constants.vbNewLine',

    best regards

    Sascha

  5. #5
    Member
    Join Date
    Jul 2002
    Posts
    49
    Try

    ControlChars.CrLf

    Controlchars contains all the text control characters and can be very useful in some instances.

  6. #6

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    tnx alot everyone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width