String Replace Function For C#

 
 
A code snippet about how to perform a achieve the same results as the vbScript string function Replace
 
 
  1. using System;

  2. using System.Text.RegularExpressions;

  3.  

  4. string myString;

  5. myString = "This is a test.";

  6. myString = Regex.Replace(myString," is"," was");
 
Copy to Clipboard      Download code as Text Format
 
  Date entered : 24th Jan 2007
  Rating : No Rating
  Accessed  :  1891
  Submitted by :  loopsnlogic
 
   Add Comment  Printer friendly
   View All Comments  Email to a friend
   Add to my Favourites Download PDF version
   Rating  
 
                 Click each image to add
this page to each site.
 
 
 
Comments Available

    No comment available at the moment.Be the first one to make a comment

 
Related C# Source Codes
  • Simple example of IF/THEN using C#
  • Presenting Parent/Child Data in a Data Grid Row
  • Bridging the Object Relational Divide
  • Building an ASP.NET 2.0 Master Detail Application with DB2
  • Add, Edit, and Delete in DataGridView

  • Copyright © 2014 VisualBuilder. All rights reserved