I think this can be done by creating strings using brute force, and then try to match them with the provided regular expression and print if they match.
But is there a better way to do this?
Regex is used to check if a string matches a pattern. I know about it. I thought it would be interesting to do so.
source
share