Yes, there is. But doing so would be a massive security hole (because it's effectively arbitrary code execution) which is why nobody does it like that.
Perhaps this is an XY problem? Why do you want to have a user provide a function to your code - can you elaborate?
In reply to Re: Passing a regex from a CGI HTML form
by hippo
in thread Passing a regex from a CGI HTML form
by Linicks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |