Added function to get keys which match given regex only.