exception safe poco regex constructor

Make poco regexp constructor exception safe