Generate Random Strings Matching Predefined Pattern or Format for Enhanced Flexibility and Control #55
wuletawwonte
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
What is your suggestion in implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, it is not possible to get a random string based on a pattern or format provided. For example, provide "A0" as a pattern where A represents an uppercase letter and 0 represents a digit, and get something like "H7"
It would be nice if the package provides a method like
generateWithPattern(pattern)
that takes a pattern as an input and generates a random string based on that pattern. One possible approach could be adding pattern as an argument in the options object. What do you think about this feature?Beta Was this translation helpful? Give feedback.
All reactions