http://qs1969.pair.com?node_id=824362


in reply to Replacing with two digits with pipe

For this problem, you might want to look at the functions split, substr, and join.