Re: Wildcard string search within a string
From: John M Deal (johndeal_at_necessitysoftware.com)
Date: 11/11/04
- Next message: Gerry Viator: "Re: Wildcard string search within a string"
- Previous message: Jon Skeet [C# MVP]: "RE: how to make two references to one string that stay refered to the"
- In reply to: Gerry Viator: "Wildcard string search within a string"
- Next in thread: Gerry Viator: "Re: Wildcard string search within a string"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Nov 2004 09:11:28 -0800
You won't be able to do this with the normal replace method, however
here is a link to a sample of how to do this using the regular
expression features of .Net.
http://www.regular-expressions.info/dotnet.html
The code is in C#, but you shouldn't have a real problem translating it
to VB.Net (I'm guessing that you use VB.Net from you original question).
Have A Better One!
John M Deal, MCP
Necessity Software
Gerry Viator wrote:
> Hi all,
>
>
> I want to remove this [878454]: With a string function? Can I use the Astric
> as wild card? If not, how?
>
> Dim txtstr as String = "Print Report for MRN [878454] from B Database"
>
> txtstr = txtstr.Replace("[*]","")
>
> please help
>
>
- Next message: Gerry Viator: "Re: Wildcard string search within a string"
- Previous message: Jon Skeet [C# MVP]: "RE: how to make two references to one string that stay refered to the"
- In reply to: Gerry Viator: "Wildcard string search within a string"
- Next in thread: Gerry Viator: "Re: Wildcard string search within a string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|