Regex(sourceExtract) not working properly in Firefox

Hi,
Regex(using sourceExtract) not working properly in Firefox whereas the same code works as expected in Chrome browser.
{
“CreationDate”: “2018-9-1”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://a9t9.com/”,
“Value”: “”
},
{
“Command”: “sourceExtract”,
“Target”: “regex=(?<=Subscribe to the ).*(?=automation)”,
“Value”: “var1”
}
]
}

Output in Firefox - “[error]invalid regexp group” in error log
Output in Chrome - VAR1="a9t9 "

thanks.

1 Like

Thanks for reporting this. I confirmed it and we will look into it.

Solution: ?<= is the look behind regular expression. It is supported in Chrome, but not Firefox. Therefore this specific sourceExtract command works only in Chrome.

For more information see: