Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Escape's Vanity Fair (Malformed \p {X} character escape)
//C# 'Hello, world' //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var input = @"C:\Program Files\Test1\Test2"; var replaced = Regex.Replace(input,"\\\\Program Files(( \\(x86\\)\\\\).*?|(\\\\).*?)","-"); Console.WriteLine(replaced ); } } }
run
|
edit
|
history
|
help
0
Pascal Tringle
Swap w/o third var
to find the first index of a substring in a given string
ASCII table generator
vttrtbrbt
combof123usingloop
ss
Fórum SO ➡ Merging 2 lists by Name and adding their Values, using LINQ ♦
Flipping a bit
foreach