How many metacharacters are there?
Answer
In POSIX extended regular expressions, there are
14 metacharacters that must be escaped (preceded by a backslash ( )) in order to drop their special meaning and be treated literally inside an expression: opening and closing square brackets ( [ and ] ); backslash ( ); caret ( ^ ); dollar sign ( $ ); period/full stop …
Answer
In POSIX extended regular expressions, there are
14 metacharacters that must be escaped (preceded by a backslash ( )) in order to drop their special meaning and be treated literally inside an expression: opening and closing square brackets ( [ and ] ); backslash ( ); caret ( ^ ); dollar sign ( $ ); period/full stop …