#!/bin/bash

set -eou pipefail

cat > /tmp/regex_tmp_hr
regex=$(rofi -dmenu -window-title 'regular expression')

</tmp/regex_tmp_hr sed "$regex"
