My string length is allowed not more than 255 characters. The following Regular expression can be taken for example-
^([a-zA-Z0-9]{1}((-|[a-zA-Z0-9])*[a-zA-Z0-9])*[.])*[a-zA-Z]{1}((-|[a-zA-Z0-9])*[a-zA-Z0-9])*\.?$
i am using exrex.getone(regular_expression) function for generating strings where i can't control generated string length.
How to generate a string of intended length which satisfy the Regular Expression also ?
Till now i have not seen any answer satisfying this condition.