I have a plain text dictionary in which each headword is matched by
^# \(† \)?headword,
How can I make a custom search function that relieves me of typing the whole regex every time I want to look up a word? I tried recording a keyboard macro, but that didn't work.