Hi all I have the following Regx that can't be accepted on the JavaScript
if ($(caller).attr('value').toString().search('/(?=\D*\d\D*\d).{8,15}/g') == -1)
where
$(caller).attr('value').toString() = "fdsddfsd45"
it returns to me -1
also I'm try to test it from pattern
if (!pattern.test($(caller).attr('value'))) {
where
pattern = /^(?=D*dD*d).{8,15}$/
it returns to me false
$(caller).attr('value').toString() = "fdsddfsd45"
when I tried to test it through desktop application called RegExr this string "fdsddfsd45" match the expression (?=\D*\d\D*\d).{8,15} is this JavaScript bug I don't know ?