Goal:
Make the regex code to be working in C# code
Problem:
What syntax do I miss in order to make the regex code to be working in C#.
The regex code from https://regexr.com/578ul works but not at onelinegdb (https://www.onlinegdb.com/HycbSKxAL)
I have a symbol '"' that is part of the regex code but csharp consider it as a part of c# and not as a symbol.
Regex
,["0x465a27d8333756e1:0x66460f22856aea3b","broadway 22, 123 45 ny",null,[null,null,55.0359401,13.9717872]
,0,1]
C# code
using System;
using System.Text.RegularExpressions;
public class Example
{
public static void Main()
{
string pattern = @"","broad.*]";
string input = @",["0x465a27d8333756e1:0x66460f22856aea3b","broadway 22, 123 45 ny",null,[null,null,55.0359401,13.9717872]
,0,1]"
foreach (Match m in Regex.Matches(input, pattern))
{
Console.WriteLine(m.Value);
}
}
}
Regex:
https://regexr.com/578ul
Onlinegdb with C# code:
https://www.onlinegdb.com/HycbSKxAL
Thank you!