merge rebased regex_flag
php: escape regex patterns