fix func def search regex