I'm having a problem trying to find out my username and password.
I have a challenge to do and I am asked to find my username and password based on a hint given by the following regular expression:
[1-3]{0,4}
Which gives me an intention number that I think also serves as a clue to be able to determine the answer:
2035645013
I've searched but can't find anything that could help me.
How could I do this?
Well, by applying that regular expression to the number you have been given, you get:
and the remaining numbers are:
The expression:
It means: a sequence of between none and 4 numbers, all of them between 1 and 3.
This means that the following values are satisfied:
and so on.
Now, given:
We must go exploring which combinations have it:
Looking closely, we see that there are only two possible sequences:
Therefore the solution is that it is either 2 or 13 . Maybe the username is 2 and the password is 13?