1 of 3

CJam, 16 bytes

l_,),.\'</Wf%'<*

Try it online!

A port of my Retina answer.