#1
|
|||
|
|||
![]()
Hi,
I'm trying to use in a transformer a regular expression to match some data but I'm getting this error. Here is an example of what I am doing. The data: Code:
<value name="VALUE" type="Numeric" unit="Ohm"> 3000 <escape type="GREATER_THAN_MAX" /> </value> So i execute this javascript in my transformer: Code:
var matches = node.toString().match(/(?<=<escape type=")(.+)(?=" \/>)/); SyntaxError: Invalid quantifier ? How can I use my regular expression without getting the error? Thanks |
Tags |
javascript, regexp, transformer |
Thread Tools | |
Display Modes | |
|
|