added regex destructuring binding