Converted to your regex method.