Using jregex for Perl regex validation to make stingray happy