0 votes
in JAVA by
How the metacharacters are different from the ordinary characters?

1 Answer

0 votes
by

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

0 votes
asked Feb 9, 2021 in JAVA by SakshiSharma
0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
...