search pattern bugfix
first attempt at replace-all
making base64 and text import more robust and flexible