Home All Groups Group Topic Archive Search About

String function in VB

Author
17 Aug 2006 2:37 PM
JR
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.

Author
17 Aug 2006 2:53 PM
Cor Ligthert [MVP]
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

Show quoteHide quote
"JR" <xan***@charter.net> schreef in bericht
news:1155825470.339197.308980@m73g2000cwd.googlegroups.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.
>
Author
17 Aug 2006 3:04 PM
JR
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:
Show quoteHide quote
> 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" <xan***@charter.net> schreef in bericht
> news:1155825470.339197.308980@m73g2000cwd.googlegroups.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.
> >
Author
17 Aug 2006 3:16 PM
Patrice
See System.Text.RegularExpressions

--
Patrice

"JR" <xan***@charter.net> a écrit dans le message de news:
1155827097.140381.288***@75g2000cwc.googlegroups.com...
Show quoteHide quote
> 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" <xan***@charter.net> schreef in bericht
>> news:1155825470.339197.308980@m73g2000cwd.googlegroups.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.
>> >
>
Author
17 Aug 2006 8:16 PM
Herfried K. Wagner [MVP]
"JR" <xan***@charter.net> schrieb:
> 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/>
Author
22 Aug 2006 3:38 PM
JR
Herfried K. Wagner [MVP] wrote:
> "JR" <xan***@charter.net> schrieb:
> > 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