Hi all,

I have a report whicih needs to receive a parameter in the following format:

(76,9,2008,1,4,19,9),(77,9,2008,1,4,19,9),...

(a list of tuples with 7 numbers each)

I tested the following regular expression in http://www.regular-expressions.info/...ptexample.html and it worked normally:

^\(\d+,\d+,\d+,\d+,\d+,\d+,\d+\)(,\(\d+,\d+,\d+,\d+,\d+,\d+,\d+\))*$

However, when I use an If statement in the xaction file in order to validate the input, it doesn't work!

When I use

id.match(/^\(\d+,\d+,\d+,\d+,\d+,\d+,\d+\)(,\(\d+,\d+,\d+,\d+,\d+,\d+,\d+\))*$/)

it accepts anything, and when I use

new RegExp('^\(\d+,\d+,\d+,\d+,\d+,\d+,\d+\)(,\(\d+,\d+,\d+,\d+,\d+,\d+,\d+\))*$').test(id) it doesn't accept any valid input.

Does anyone have any idea?