String function in VB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JR

    #1

    String function in VB

    I am having trouble remembering a string function that I used a while
    back in VB. I don't know if it was .NET specific.

    The function either searched a string or replaced a substring in a
    string or something similar. The main thing I remember about the
    function is that it used regular expression like syntax for the
    filtering mechanism.

    I know this is vague but any help is appreciated.

    Thanks.

  • Cor Ligthert [MVP]

    #2
    Re: String function in VB

    JR,

    Yes this is super vague the most I could make from your question was the
    string.replace

    http://msdn2.microsoft.com/en-us/library/fk49wtc1.aspx

    dim mystring as string = "12345".replace ("23","99")

    I hope this helps,

    Cor

    "JR" <xanadu@charter .netschreef in bericht
    news:1155825470 .339197.308980@ m73g2000cwd.goo glegroups.com.. .
    >I am having trouble remembering a string function that I used a while
    back in VB. I don't know if it was .NET specific.
    >
    The function either searched a string or replaced a substring in a
    string or something similar. The main thing I remember about the
    function is that it used regular expression like syntax for the
    filtering mechanism.
    >
    I know this is vague but any help is appreciated.
    >
    Thanks.
    >

    Comment

    • JR

      #3
      Re: String function in VB

      Yes...."super vague" is an understatement. The function in question was
      not a member function of the string class. The key was that it used
      "regular expression" like syntax for the filter.

      Cor Ligthert [MVP] wrote:
      JR,
      >
      Yes this is super vague the most I could make from your question was the
      string.replace
      >
      http://msdn2.microsoft.com/en-us/library/fk49wtc1.aspx
      >
      dim mystring as string = "12345".replace ("23","99")
      >
      I hope this helps,
      >
      Cor
      >
      "JR" <xanadu@charter .netschreef in bericht
      news:1155825470 .339197.308980@ m73g2000cwd.goo glegroups.com.. .
      I am having trouble remembering a string function that I used a while
      back in VB. I don't know if it was .NET specific.

      The function either searched a string or replaced a substring in a
      string or something similar. The main thing I remember about the
      function is that it used regular expression like syntax for the
      filtering mechanism.

      I know this is vague but any help is appreciated.

      Thanks.

      Comment

      • Patrice

        #4
        Re: String function in VB

        See System.Text.Reg ularExpressions

        --
        Patrice

        "JR" <xanadu@charter .neta écrit dans le message de news:
        1155827097.1403 81.288990@75g20 00...legro ups.com...
        Yes...."super vague" is an understatement. The function in question was
        not a member function of the string class. The key was that it used
        "regular expression" like syntax for the filter.
        >
        Cor Ligthert [MVP] wrote:
        >JR,
        >>
        >Yes this is super vague the most I could make from your question was the
        >string.repla ce
        >>
        >http://msdn2.microsoft.com/en-us/library/fk49wtc1.aspx
        >>
        >dim mystring as string = "12345".replace ("23","99")
        >>
        >I hope this helps,
        >>
        >Cor
        >>
        >"JR" <xanadu@charter .netschreef in bericht
        >news:115582547 0.339197.308980 @m73g2000cwd.go oglegroups.com. ..
        >I am having trouble remembering a string function that I used a while
        back in VB. I don't know if it was .NET specific.
        >
        The function either searched a string or replaced a substring in a
        string or something similar. The main thing I remember about the
        function is that it used regular expression like syntax for the
        filtering mechanism.
        >
        I know this is vague but any help is appreciated.
        >
        Thanks.
        >
        >

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: String function in VB

          "JR" <xanadu@charter .netschrieb:
          Yes...."super vague" is an understatement. The function in question was
          not a member function of the string class. The key was that it used
          "regular expression" like syntax for the filter.
          Maybe you are referring to VB's 'Replace' function or 'Like' operator.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

          Comment

          • JR

            #6
            Re: String function in VB


            Herfried K. Wagner [MVP] wrote:
            "JR" <xanadu@charter .netschrieb:
            Yes...."super vague" is an understatement. The function in question was
            not a member function of the string class. The key was that it used
            "regular expression" like syntax for the filter.
            >
            Maybe you are referring to VB's 'Replace' function or 'Like' operator.
            >
            --
            M S Herfried K. Wagner
            M V P <URL:http://dotnet.mvps.org/>
            V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
            YES! It was the 'Like' operator I was trying to remember.

            Thanks!

            JR

            Comment

            Working...