A replay is shared via an alphanumeric code typically 6 characters long. The code can be shared however you want: in game, on forums, over social media. Another player can input that code and watch your replay. Codes are valid until the next patch.