What about this?

```
when /\AARRAY\[(.*)\]\z/
  "{$1.scan(/\'([\w\'\s]*)\'::[a-z]/).join(', ')}"
```

Makes it easier to read IMO