Fix regexp and add explanation

Signed-off-by: Marc Delisle <marc@infomarc.info>