regex bug fixed

Signed-off-by: Leo Bärring <leo.barring@gmail.com>