473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

String function in VB

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.

Aug 17 '06 #1
5 2868
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" <xa****@charter.netschreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.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.

Aug 17 '06 #2
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:
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" <xa****@charter.netschreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.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.
Aug 17 '06 #3
See System.Text.RegularExpressions

--
Patrice

"JR" <xa****@charter.neta écrit dans le message de news:
11**********************@75g2000cwc.googlegroups.c om...
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" <xa****@charter.netschreef in bericht
news:11**********************@m73g2000cwd.googleg roups.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.

Aug 17 '06 #4
"JR" <xa****@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/>
Aug 17 '06 #5
JR

Herfried K. Wagner [MVP] wrote:
"JR" <xa****@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

Aug 22 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Derek Hart | last post by:
I wish to execute code from a string. The string will have a function name, which will return a string: Dim a as string a = "MyFunctionName(param1, param2)" I have seen a ton of people...
9
by: Danny | last post by:
HI again Is there a nifty function in access that will: 1. return the amount of occurances of a small string within a larger string? this<br>is<br>a<br>test would return 3 for <br>
4
by: songkv | last post by:
Hi, I am trying to reassign an array of char to a string literal by calling a function. In the function I use pointer-to-pointer since I want to reassign the "string array pointer" to the string...
4
by: Simon Schaap | last post by:
Hello, I have encountered a strange problem and I hope you can help me to understand it. What I want to do is to pass an array of chars to a function that will split it up (on every location where...
18
by: intercom5 | last post by:
I'm writing a program in C, and thus have to use C strings. The problem that I am having is I don't know how to reallocate the space for a C string outside the scope of that string. For example:...
35
by: Cor | last post by:
Hallo, I have promised Jay B yesterday to do some tests. The subject was a string evaluation that Jon had send in. Jay B was in doubt what was better because there was a discussion in the C#...
5
by: Sia Jai Sung | last post by:
Hi, I have a class that I modify from a sample program, like below ========================================== Imports System Imports System.Web.UI Imports System.Security.Cryptography ...
9
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but...
17
by: Tom | last post by:
Is there such a thing as a CONTAINS for a string variable in VB.NET? For instance, I want to do something like the following: If strTest Contains ("A","B", "C") Then Debug.WriteLine("Found...
11
by: Darren Anderson | last post by:
I have a function that I've tried using in an if then statement and I've found that no matter how much reworking I do with the code, the expected result is incorrect. the code: If Not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.