For every occurrence of the char #, match the previous character and save it in a group (backreference).
Example: for the text "a#bc# -#", set backreferences with a, c and -.
You are not allowed to consume the hash character.