added regex condition