RESULTS:
Execution Time(sec.):
0.000006
Raw Match Pattern:
\[[^\]]+?_BONJOUR\].+?\[\/.+?_BONJOUR\]
Raw Replace Pattern:
C#.NET Code Example:
using System;
using System.Text.RegularExpressions;
namespace myapp
{
class Class1
{
static void Main(string[] args)
{
String sourcestring = "source string to match with pattern";
String matchpattern = @"\[[^\]]+?_BONJOUR\].+?\[\/.+?_BONJOUR\]";
String replacementpattern = @"";
Console.WriteLine(Regex.Replace(sourcestring,matchpattern,replacementpattern,RegexOptions.Singleline));
}
}
}
$sourcestring after replacement:
Hi,
Here is some text with $PlaceHolders$.
[DETAIL]
To reach me: http://$PortalURL$
[/DETAIL]