Replace expressions – Casio Naurtech CETerm Ver.5.5 User Manual User Manual

Page 101

Advertising
background image

N

AURTECH

E

MULATORS

&

W

EB

B

ROWSER FOR

W

INDOWS

CE

/

W

INDOWS

M

OBILE




CETerm | CE3270 | CE5250 | CEVT220

Page 101


Replace Expressions

The Replace string can have more than literal text and the match replacement symbols. You can
insert special characters, special keys, and emulator actions. There are 3 levels of substitution for
the Replace string.

Level 1
& - replaced by "whole match"
\d - where d is a digit [1-9] replaced by
matched substring.
\\ - replaced by \.

Level 2
%T - replaced by MSR read time
%D - replaced by MSR read date

Level 3
Additional special character replacements.

NOTE: Each of these must have the backslash doubled (escaped) to pass through Level 1 as a
single backslash. We show only single backslashes below.

1. A backslash '\' introduces special characters:

\b - Backspace
\c - CSI character (VT)
\e - Escape character (VT)
\n - Newline
\r - Carriage Return (Enter for IBM)
\t - Tab
\xdd
\Xdd - where d is a hexadecimal digit 0-9,
a-f, or A-F, will insert the
equivalent ASCII character.

\IDA_xxx\ - replaced by the specified emulator
or program function. There must
be a trailing backslash at the
end of the IDA action name.
Use the single character versions
if they are available.

Some common IDA actions:

IDA_FIELD_EXIT - IBM field exit
IDA_ERASE_EOF - erase to end of field
IDA_PF6 - IBM PF6 key (F6 for VT)


Tips:
The quotes on the Match and Replace examples above are not entered into the configuration
in CETerm.

Use the '^' and '$' "anchors" when possible to improve the match reliability.

Advertising
This manual is related to the following products: