Use regex for better resource string parsing