regex exercises and arrays