fix regex Closes: #699555

(cherry picked from commit 84dd8bb3886251313475e71891e65cbc7800e43b)
Release new version 4.0.8