Introduction

Syntax

Program Help

Examples

Download

Match Tool 2.1

Match Tool 3.0

 

DEELX Basic Pattern Syntax: Escaped Characters

Return: Content | Prev: Common characters | Next: Quoted characters (\Q...\E)


Simple Escaped Characters

Some nonprinting characters which we know, for example: new line, tab etc. Some punctuations are specially defined in regular expression. To match these characters in string, add "\" in pattern.


Remarks

Escaped characters in DEELX:

Escaped

Description

\a

Bell = \x07

\f

Page = \x0C

\n

New line = \x0A

\r

Return = \x0D

\t

Tab = \x09

\v

Vertical tab = \x0B

\e

ESC = \x1B

\x20

Use 2 hex number, match the char

\u002B

Use 4 hex number, match the char

\x{20A060}

Use any hex number, match the char

Specially defined characters table:

Character

Description

^

Matches the beginning of the string. Use "\^" to match "^" itself

$

Matches the end of the string. Use "\$" to match "$" itself

( )

Grouping. Use "\(" and "\)" to match "(" and ")"

[ ]

Character class. Use "\[" and "\]" to match "[" and "]"

{ }

Define quantifiers. Use "\{" and "\}" to match "{" and "}"

.

Match any character except newline(\n). Use "\." to match "." itself

?

Let subpattern match 0 or 1 time. Use "\?" to match "?" itself

+

Let subpattern match at least 1 times. Use "\+" to match "+" itself

*

Let subpattern match any times. Use "\*" to match "*" itself

|

Alternation. Use "\|" to match "|" itself


 

 

RegExLab.com © 2005 - All Rights Reserved