Regex issue in ui.vision RPA 7.0.13

I am having trouble with regex. it works on regex101 test system but when I copy and paste to Ui has problem
here is how it looks in Json source view

{
  "Command": "sourceExtract",
  "Target": "regex=\">(.+?)<\\/",
  "Value": "cusname",
  "Description": ""
}

This is what I type in table view : Target : ">(.+?)</

And the error says: * [error]

[Line 4] : Invalid regular expression: /">(.+?)</: \ at end of pattern

Need something simple I’m sure but its got me.

Denny

Same issue in V6.2.8. But if I remove the \ at end of pattern it works (but is the regex still ok?)

    {
      "Command": "sourceExtract",
      "Target": "regex=\">(.+?)<",
      "Value": "cusname",
      "Description": ""
    }

Thanks for the help. Does not seem to help.
Also ur suggestion does not work on regex101 test bed

I’ll continue research. I used regex over 20 years ago and its amazing how lost I am now.

This does work in regex101
“>(.+?)<
on this TEXT:
“1_s_1_l_Account”>SHAWHORN,JAMES<td role=“gridcell” style=“text-align:left;” title=“8255909724517344” id=“1_s_1_l_CSG_Account_Number”>8255909724517344”

Now how can I use regex on a variable?

You can run the Javascript regex inside

  • executeScript (latest ECMAScript 6, runs inside Chrome) => regex example

  • and/or executeScriptSandbox (ES5 JS only but no open website needed).

See also: How can I apply regex to a given variable? - #4 by newuserkantu