I am busy with the following code:
^( ?(?!sa|sd|ss|SA|SD|SS)[A-Za-z]{2})[1][7][9][0]\1|[8][8][8][8]\1 $
So what i'm trying to create it that the first capturing group, it creates a-z 2 letters but then without sa/sd/ss/SA/SD/SS, that the group joins the [1][7][9][0]
or the [8][8][8][8]
So that for example 1790AA is a match and 8888AA is a match. I could just do :
^[1][7][9][0-7] ?(?!sa|sd|ss|SA|SD|SS)[A-Za-z]{2}$|[8][8][8][8] ?(?!sa|sd|ss|SA|SD|SS)[A-Za-z]{2}$
but as you can see it will be a long one. Is it possible to use something like:
^( ?(?!sa|sd|ss|SA|SD|SS)[A-Za-z]{2})
(creating the group) then [1][7][9][0] + \1 $