Home
|
Misc
|
Run Code
|
Code Wall
|
Users
|
Feedback
|
Login
Escape's Vanity Fair (Malformed \p {X} character escape)
Language:
Assembly
C#
C++
C
Common Lisp
F#
Go
Haskell
Java
Javascript
Lua
Node.js
Objective-C
Pascal
Perl
Php
Prolog
Python
Python 3
Ruby
Scala
Scheme
Sql Server
Visual Basic
Editor:
CodeMirror
EditArea
Simple
//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 ); } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0.3 sec, absolute running time: 0.23 sec, cpu time: 0.25 sec, average memory usage: 24 Mb, average nr of threads: 5
edit mode
|
history
|
discussion
C:-Test1\Test2