Binary to unary conversion

A binary to unary conversion program is a program that can convert a given number in binary form to a unary form. It is mainly used to showcase Markov algorithm (wikipedia). Its steps are as follows:


 * 1) Replace all instances of   with   (  can be any character)
 * 2) Replace all instances of   with
 * 3) Remove all instances of

For example, here is the conversion of  to  :

///
/1/0*//*0/0**//0//100010

Retina
1 0* +`\*0 0** 0 (an extra line must be present)

Try it online.

Sed
s/1/0*/g;:x;s/\*0/0**/g;tx;s/0//g