[patch] regex crash in complicated expressions