Identifying Regions based on Flexible User Defined Constraints