Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Evo Ivana da budes fancy :D
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { // Define a test string. string text = "This is some and string and I would like to remove it."; //ignore case string replace using Regex Regex rex = new Regex(" and", RegexOptions.IgnoreCase); // this line only replace first occurence of 'and' string returnString = rex.Replace(text, "",1); Console.WriteLine(returnString); } } }
run
|
edit
|
history
|
help
0
Padma. C#
CommandForce3
SKR2
newDiv2by1
Prime no for specified max no by user(Using While Loop)
jjj4
Lambdas
NationalCode
Teste
out parameters