The character class [ ]
matches only one out of several characters placed inside the square brackets.
Task
You have a test string .
Your task is to write a regex that will match with following conditions:
- must be of length:
6
- First character:
1
,2
or3
- Second character:
1
,2
or0
- Third character:
x
,s
or0
- Fourth character:
3
,0
,A
ora
- Fifth character:
x
,s
oru
- Sixth character:
.
or,
Note
This is a regex only challenge. You are not required to write any code.
You have to fill the regex pattern in the blank (_________
).