Hey Tekk
How much nail ripped out - did it rip out into the quick (the bit you can't normally see)? It should grow back eventually if the nail bed itself (below the quick) is still mostly intact. Will take a while though, and you should protect the nail bed until then. We have a surgeon here who likes to get a false fingernail and fix it into place while the new nail grows back, just for protection (he normally stitches thenm in).
I'd suggest getting a medical review just to see how best to keep the nail bed protected until the new nail grows back. I can't remember how fast a nail grows normally, but a doc should be able to tell you, or google might know
Ripping nails out can be messy and painful, but as long as you don't get an infection in the unprotected nail bed, or damage the bed itself, it's no big deal in the long run. Not like losing a finger or something. Nails normally can grow back.
Cheers
Mick
PS A pic would be interesting - just make sure you post it with a warning if it's truly gross!!
PPS Google find some useful sites for nail injuries
here and
here