fix pg regex