Skip to content

../notes_to_myself

  • Home
  • Portfolio
  • Sample Page

Ignore Casing When Searching For A String

–use regex to search for string regardless of casing:
content = Regex.Replace(content, stringToReplace, replacementString, RegexOptions.IgnoreCase);

Author Chrystal SanderPosted on March 7, 2011Categories DotNet

Post navigation

Previous Previous post: Convert Comma-Delimited String To Array & Loop
Next Next post: Moving Files In SharePoint
  • Get Command Line Help
  • Online C# Sandbox

Android Architecture Arduino ASP.NET AWS Azure Caching Constraints CSharp cybersecurity Design Patterns DotNet Excel git IIS IOT Linq log4net Master Chief MinIO mstest MVC Notes nunit oracle Partitioning PHP PowerShell Query Def Raspberry Pi REST S3 SQL SQL Server Stored Procedures Swagger systables tools Visual Basic Visual Studio WebApi windows WordPress Xml xunit

  • Home
  • Portfolio
  • Sample Page
../notes_to_myself