My bad. BASH does not understand the \w, that is a PERL style modifier which I used as you’d used the preg PHP function.