Run Code
|
API
|
Code Wall
|
Users
|
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."; // this line only replace first occurence of 'and' string returnString = new Regex(" and", RegexOptions.IgnoreCase).Replace(text, "",1); Console.WriteLine(returnString); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
CommandForce2
Chest Interaction Unity
saxasdcdf
Linq - When using FirstOrDefault, make sure to check for null result
Bubble Sort
MC
convert a string of numbers to a list then use a forEach to loop through the list
regex: rozważania nad powielaniem grup za pomocą kwantyfikatora
1. Basics: primitive data types
dfgthytgrfedcf
Please log in to post a comment.