[Top] [Prev] [Next] [Bottom]




Quoted strings


There are several places in the configuration files where names or other text strings may be required. For example, as part of an attribute expression, when using lexical analysis, or when specifying an email address in one of the MAILsweeper configuration files.

Where possible you can just type in the text string.

For example:

TextString
Fred@Inside

However, if certain characters are to be included in the text, such as a space, you must enter the text as a quoted string. A quoted string is a string enclosed within double quotes.

For example:

"This is a quoted text string"
"Fred Soames"@"Inside postoffice"

Sometimes it may also be necessary to enter special characters within the quoted string, such as a question mark, or the double quotation mark itself. In this case you must escape the character with a backslash.

For example:

"Is this a quoted text string \?"
Commas are not handled in quoted strings.

Some special characters that must be escaped with a backslash are shown below.

Escaped character Meaning
\" "
\\ \
\* *
\? ?
\a Alert (bell)
\b Backspace
\f Formfeed
\n Linefeed
\r Carriage return
\t Horizontal tab
\v Vertical tab

 



[Top] [Prev] [Next] [Bottom]



msw.support@mimesweeper.com

Copyright © 1998, Content Technologies Limited. All rights reserved.