Nail biting help?

This may be kind of off topic from this site but can anyone give me advice to stop biting my nails?? I've had a problem with it for as long as I can remember. It stopped recently when I started dating my boyfriend and my nails were so strong long and looked great. I thought that since I was happy with him and less anxious it had stopped, I've never had a healthy relationship before so I figured it was just what I needed to stop. But recently I've started doing it again and I have all these painful wounds around my nails and I don't know why I'm doing it! There's nothing wrong in our relationship as far as I can tell but I have had some more anxiety. Has anyone ever tried hypnosis to stop or anything like that? My psychiatrist does that so maybe I could give it a shot. But any other advice is helpful as well!