Write a regular expression substitution string which can base64 decode a string using only a regular expression engine built into the language. Eg:
# Example in python
import re
print(re.sub(..., ..., "SGVsbG8gd29ybGQK")) # "Hello world\n"
# ^^^ ^^^
# These count towards your byte count, the rest doesn't
Rules:
- No libraries
- No tools like
base64in bash - Must be a regular expression
- Must decode RFC 4648 based base64
- Any programming language (eg: Python, JavaScript, PHP, Ruby, Awk, Sed)
- Length of your find string + Length of your replace string = Byte count
- Shortest byte count wins