Workaround for regex engine limitation