I'm trying to learn about regular expressions at the moment but just can't get my head around them!
I need to find a way of making sure a 4 digit number contains only the numbers 0, 5 and 9... so it must have all 3 and only all 3 numbers within the 4 digits (obviously any one of the 3 can be repeated to make the 4 digits total).
Hope that makes sense. I'm sure there was a much easier way of explaining it!
Any help appreciated.
I need to find a way of making sure a 4 digit number contains only the numbers 0, 5 and 9... so it must have all 3 and only all 3 numbers within the 4 digits (obviously any one of the 3 can be repeated to make the 4 digits total).
Hope that makes sense. I'm sure there was a much easier way of explaining it!
Any help appreciated.
Last edited: