0 votes
in JAVA by (30.8k points)
How the metacharacters are different from the ordinary characters?

1 Answer

0 votes
by (30.8k points)

Metacharacters have the special meaning to the regular expression engine. The metacharacters are ^, $, ., *, +, etc. The regular expression engine does not consider them as the regular characters. To enable the regular expression engine treating the metacharacters as ordinary characters, we need to escape the metacharacters with the backslash.

Related questions