The following rules apply within a Basic Regular Expression (BRE):
. [ \ * ^ $
In general, it is best not to precede ordinary characters by a backslash, except in special situations such as backreferencing, grouping , and specifying a number of occurrences.
![]()
Additional Syntax
Specifiers for Basic Regular Expressions