You won’t be able to do it inside the regex, as “*” and “#” probably means something arcane.

You should be able to do this as a regular F&R.

But I think what you are trying to do is …

Find the number between the two #x# marks. Multiply x by y. Replace #x# with z.

Is that right?

Take #1# egg(s) > 1 * 5 = 5 > Take 5 egg(s).

I think you may well have to have a regex within a regex for this.