Add a new type of published parameter : text with regular expression (or add it as an option in the actual text type).
The idea is to be able to control the input by a regular expression.
Imagine the possibilities : check if the input is a valid email, a valid ID, etc...