Which among the following is/are not a metacharacter?
1. /a
2. /A
3. /b
4. /B
A. Only 1
B. 1 and 3
C. 2, 3 and 4
D. 2 and 4
Answer: Option A
Solution(By Examveda Team)
/A, /b and /B are metacharacters. A: Matches only at the beginning of the string. b: Matches a word boundary. B: Matches anything but a word boundary.Related Questions on Regular Expressions
A. 1 and 2
B. 2 and 4
C. 1 and 4
D. 2 and 3
Join The Discussion