using System.Globalization;
using System.Text.RegularExpressions;
public static void Main()
ParseCoordinates("POINT(4,8973 52,3766)");
private static readonly Regex PointRegex = new Regex(@"^POINT\((-?\d+.\d+) (-?\d+.\d+)\)$", RegexOptions.Compiled | RegexOptions.IgnoreCase, TimeSpan.FromMinutes(2));
public static string ParseCoordinates(string point)
if (string.IsNullOrWhiteSpace(point))
var match = PointRegex.Match(point);
Console.WriteLine("Latitude: " + double.Parse(match.Groups[1].Value, new CultureInfo("en-US", false)));
Console.WriteLine("Longitude: " + double.Parse(match.Groups[2].Value, new CultureInfo("en-NL", false)));