I haven't done this myself, but I strongly suspect the usage is more like
SELECT * FROM sometable WHERE somefield ~ '^d' ;
Doug Gorley | douggorley(at)shaw(dot)ca