Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
trees with reverse polish notation
custom Queue Implementation
NonRepeatingString
float to short cast overflow
Date format display
removeDuplicate C#
hackes
Binary Search Tree
Guid Formatting Code Snippet
ShakerSort
Please log in to post a comment.