Hello all,
I thought I had an answer to another post in the forum when I found out that the UI.Vision RPA software supported Regex, however, I was unable to get capture groups to work.
So what I am currently trying to grab a portion of an IP (see code below:) but my Regex (regex=172.\d+.(\d+).\d+$1) that works in other programs is not garbing the capture group.
Is there a way to select the first capture group or is this function of Regex not possible with Kantu?
{
"Name": "Regex",
"CreationDate": "2020-2-24",
"Commands": [
{
"Command": "open",
"Target": "https://en.wikipedia.org/wiki/IP_address",
"Value": ""
},
{
"Command": "sourceExtract",
"Target": "regex=172\.\d+\.(\d+)\.\d+",
"Value": "value"
},
{
"Command": "pause",
"Target": "2000",
"Value": ""
},
{
"Command": "echo",
"Target": "${value}",
"Value": ""
}
]
}