Hello. Thank you for coming to JustAnswer with your question, and welcome.
From what you are describing, you will most likely lose the nail. To protect it, and keep it from accidentally being ripped off (which can cause some damage to the nail bed), keep it covered with a bandaid. The nail will gradually detach, or grow out. Also, keep it trimmed short. Your new nail will be growing at the same time.
Clean the area with soap and water, as you would normally wash your hands or shower. As long as the nail bed remains intact, there should be no problems with infection.
If you do snag and cause some damage, clean the area thoroughly with soap and water and keep it covered. You should see a doctor if you develop some swelling, pain, redness, drainage, etc.