use ^ rather than ~