4

V, 41, 40, 37, 36 bytes
VuÍ[ .,\/]/-
Í0-9a-z]
Í-«/-
Í^-
Í-$
Try it online! or Check all test cases at once!
As usual, here this contains a bunch of unprintable and non-ASCII characters, so here is a hexdump:
0000000: 5675 cd5b 202e 2c5c 2f5d 2f2d 0acd 8430 Vu.[ .,\/]/-...0
0000010: 2d39 61...