Was inadertantly zeroing out web.xml file because the regex string contained the / character that through off the syntax for perl