Results 1 to 3 of 3

Thread: String Replace using a wildcard

  1. #1

    Thread Starter
    Banned
    Join Date
    Aug 2006
    Posts
    77

    String Replace using a wildcard

    Hi,

    This is probably easy but I haven't been able to find help on it. Basically, I want to replace the contents of a string up to the occurence of a backslash.

    So,
    newString = aCertainValue.ToString().Replace("wildcard\","Q");

    Any ideas?

    Thanks.

  2. #2

    Thread Starter
    Banned
    Join Date
    Aug 2006
    Posts
    77

    Re: String Replace using a wildcard

    Figured it out. Nevermind!

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: String Replace using a wildcard

    Don't forget to resolve your thread from the Thread Tools menu.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width