
Hitachi Embedded Workshop User Manual
332
Symbol:
\t
Meaning:
This character matches the tab character.
Example 1: \t8
Finds every occurrence of a tab character followed by an 8.
Example 2: init\t
Finds every occurrence of a tab character following “init”.
Symbol:
[ ]
Meaning:
This matches any one character or a range of single characters listed within the brackets.
Brackets cannot be nested.
[-] specifies a range of characters e.g. [a-z] or [0-9]. The beginning character in the range must
have a lower ASCII value than the ending character of the range.
[~] matches a single character if it is not any one of the characters between
[~ and ]. This pattern also matches newline characters, unless the newline character is included
within the brackets.
Example 1: [AEIOU]
Finds every uppercase vowel.
Example 2: [<>?]
Finds a literal <, > or ?.
Example 3: [A-Za-z0-9_]
Matches an upper or lowercase letter, a digit or an underscore.
Example 4: [~0-9]
Matches any character except a digit.
Example 5: [ \t\n]
Matches a space, a tab or newline.
Example 6: [\]]
Matches a literal ] if ] is placed after \.
Symbol:
\
Meaning:
This is the regular expression override character. If the character following the backslash is a
regular expression character, it is treated as a normal character. The backslash is ignored if it is
followed by a normal (non-regular expression) character.
Example 1: \*
Searches for every occurrence of an asterisk.
Example 2: \\
Searches for every occurrence of a backslash.