Uploaded image for project: 'Great Lakes to Gulf Virtual Observatory'
  1. Great Lakes to Gulf Virtual Observatory
  2. GLGVO-620

write a regular expression for data extraction

XMLWordPrintableJSON

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      For our water quality assurance task, we need to write a regular expression to extract specific values from a response JSON. For more info please look at [^regular-expressions.pdf]

      For starting, please extract the `turbidity-fnu` values.
      Example JSON response: https://gltg-dev.ncsa.illinois.edu/clowder/api/geostreams/datapoints?sensor_id=4171
      Regex tester: http://regexstorm.net/tester

      Online tool: https://regexr.com/
      Regular expression provided (not working yet): 

      ^.*?"end_time":"(?\d{4})-(?\d{2})-(?\d{2})T(?\d{2}:\d{2}:\d{2})Z".*?"turbidity-fnu":(?[\d.]+)

              aarajh Aaraj Habib
              diegoac2 Diego Calderon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: