added dynamic regex tryer