Is your feature request related to a problem? Please describe.
I have a 2 line prompt. It'll be a lot more accurate to let me define a regex (/^: $/) instead of just matching an ending character.
Describe the solution you'd like
Provide an option to define the entire regex, instead of just the end of the regex.
Describe alternatives you've considered
No response
Additional context
No response