| means something in Regex, ~ doesn't