Examveda
Examveda

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.

This Question Belongs to PHP >> Regular Expressions

Join The Discussion

Related Questions on Regular Expressions