Android Question Get a input hint generated for a certain regex

Michael2150

Member
Licensed User
Hi this isn't an important question more just out of interest, but I was wondering if there is some sort of algorithm that could generate an input hint for something like an edittext. This hint should be derived from a regex. For example the regex input being "^(?=.*[1-9].*)[0-9]{3}$" and the output being something like, "input a 3 digit number from 000 - 999". It would be really interesting to try and work on something like this as I can't find anything similar online
 

emexes

Expert
Licensed User
www.debuggex.com isn't quite what you're looking for, but it's headed in the right direction ?

1592872237990.png
 
Last edited:
Upvote 0

Michael2150

Member
Licensed User
Thanks Erel I had a look at that and its a very useful class and it could really help with deconstructing a regex in some way I haven't figured out yet and play around with ouputs to the user to fill in the correct input.
 
Upvote 0
Top