We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Regex
- Character Class
- Matching Specific Characters
Matching Specific Characters
Matching Specific Characters
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 (_________
).