fixing regex to make shorter array