added some regex to remove error when searching with unfinsihed constraint (i.e. a colon w/o a constraint value)