I was wondering how can I match two digits but which are not the same. So, it would be fine to match 12, but not 11.
What I have till now is: I have to match strings like "P12", and I've done it with this regex:
^P([1-6]{1})([1-6]{1})$
But now my problem is how to match only strings like P12 or P32 where the numbers do not repeat.
Any help or guidance to reading materials will be grateful.
edit: Thank you all for your answers, but I was testing this in RAD (radsoftware.com.au/regexdesigner) - I know, I should have mentioned this :/, and most of it doesn't work there. I saw a solution posted from one user but this is not visible anymore, I don't know why, did he deleted it?? anyway: this is what worked:
^P([1-6]{1})(?!\1)([1-6]{1})$
Thank you all!