On 09.11.2016 01:35, npostavs@users.sourceforge.net wrote:
var re = /some value/
    str.match(re)

yeah, get the error now