added ~ to the regex