bad solution for regular expression matching

Signed-off-by: Mory Mobile <mory.mobile@gmail.com>