Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7973557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:08:20+00:00 2026-06-04T08:08:20+00:00

I draw a line on a google map than I create a string like:

  • 0

I draw a line on a google map than I create a string like:

(-25.368819800291383,130.55809472656256)(-25.507716386730266,131.05797265625006) (-24.89637614190406,131.49193261718756)(-24.582068950590272,130.31090234375006)

the first value is the latitude, the second the longitude. I assign a hidden field value tothis string so I can acces it on the server.

How can I retrieve the latitude and longitude numbers?

I was trying

 Match match = Regex.Match(points, @"(^(0|(-(((0|[1-9]\d*)\.\d+)|([1-9]\d*))))$,^(0|(-(((0|[1-9]\d*)\.\d+)|([1-9]\d*))))$)*", RegexOptions.IgnoreCase);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:08:21+00:00Added an answer on June 4, 2026 at 8:08 am

    Give this a try

    \((?<lat>[-\d.]+),(?<long>[-\d.]+)\)
    

    I like to use named groups here. To get only the latitudes use

        Regex regexObj = new Regex(@"\((?<lat>[-\d.]+),(?<long>[-\d.]+)\)");
        Match matchResult = regexObj.Match(subjectString);
        while (matchResult.Success) {
            Console.WriteLine(matchResult.Groups["lat"].Value));
            matchResult = matchResult.NextMatch();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I want to draw a line between 2 GeoPoints on Google map in
i used this url to draw map with overlay line http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&sensor=false i want to
I would like to draw a line or bar graph using HTML5 canvas. I
I am trying to draw a Google Line Chart, where each line may have
Is there a way to incrementally draw a line in the Google Earth Plug-in
I want to draw a path between two cities on a google static map
I have two coordinates for which I would like to draw a perpendicular line
I want to be able to draw routes on a web-based Google Map. I
I have to draw about 10000 line on Google Maps. So, it is spending
I'm trying to use the Google maps JavaScript API to draw a line between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.