Re: Wildcard string search within a string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John M Deal (johndeal_at_necessitysoftware.com)
Date: 11/11/04


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
>
>



Relevant Pages

  • Re: Users
    ... Watch for word wrap but this should do it: ... John M Deal, MCP ... Necessity Software ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to start an .exe
    ... John M Deal, MCP ... Necessity Software ... EnerPeter wrote: ...
    (microsoft.public.dotnet.general)
  • Re: beginning genealogy research
    ... If the original question had included any suggestion that starting details ... What is it about the word 'beginning' that only Don and John seem to have understood? ... She was not Sarah Elizabeth but Elizabeth Sarah on her birth cert. ...
    (soc.genealogy.britain)
  • Re: Adding Start and Finish Time POSSIBLE??
    ... View tab. ... However, as John said, you should not be entering dates. ... the newsgroups are *volunteers*. ... include the original question in the post. ...
    (microsoft.public.project)
  • Re: Favicons on MS-IE?
    ... John wrote: ... > Thanks, David. ... > Back then to my original question: ... MS-MVP Windows - Shell/User ...
    (microsoft.public.windowsxp.newusers)