From the URL:
https://www.flightstats.com/v2/historical-flight/TP/1478/2020/11/3/1047614176
I need to get "2020/11/3"
WHAT I HAVE
- The Regex:
\d\/(\d+\/\d+\/\d+)
it returns: for full match - "8/2020/1/3", for Group 1 - "2020/1/3". I've tested several combinations and tried to simplify it till this version
- The Javascript:
var myRe = /\d\/(\d+\/\d+\/\d+)/;
var myArray = myRe.exec('${initialurl}');
Being initialurl a variable
PROBLEMS
The javascript returns: "8/2020/11/3,2020/11/3" and I only need/want the group 1 match or if the full match is correct, just that.
CONTEXT
- Javascript newbie
- I'm using this in Ui.Vision Kantu
\d/but not include it in the result.