import re

s= ' Get exciting offers when you book a XX year car   June XX - XXXX Click here to book http://a...content-available-to-author-only...c.in/XXzOK '

formatting = [
    [r"http://a...content-available-to-author-only...c.in/\S*", "http://a...content-available-to-author-only...c.in/XXXX"]
]

for regex, substitution in formatting:
    s = re.sub(regex, substitution, s)
    print(s)