Metacharacters in Character Literals

Metacharacters in Character Literals

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

Metacharacters in Character Literals

Certain characters, such as quotation marks and the backslash, have special functions in the software. If you need to use one of these metacharacters as a literal character in a string, you must “escape” the special function by inserting a backslash ( – Escape) preceding the metacharacter as shown in the following example:

‘This is a quotation mark (‘).’
‘This is a backslash (\).’

Any character string containing a metacharacter used as a literal must be enclosed in quotation marks.

Was this article helpful?
5 out of 5 stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish