beautypg.com

Teletronics Enterprise SIP Server User Manual

Page 11

background image

TELETRONICS INTERNATIONAL, INC.

10

Enterprise SIP Server Tutorial – Dial Plan

s-tut-dp1.51-041228

$

Match the end of the line

[abc]

Match any character listed between brackets. In this case, a or b or
c.

[^abc]

Math any character except those listed between the brackets. In
this case, any characters except a, b and c.

.

Match any character except new line

X+

Match the preceding element (X, in this case) one or more times

X*

Match the preceding element (X, in this case) 0 times or more

X{n}

Match the preceding element (X, in this case) n times

X{n,}

Match the preceding element (X, in this case) n times or more

X{n,m}

Match the preceding element (X, in this case) at least n times, but
no more than m times

(chars)

The characters between the brackets will be put in a buffer. To refer
t o

t h e

d i g i t t h

b u ff e r

i n

D e p l o y

P a t t e r n ,

use % (for example %1)

¸

There are other expressions that you can use. For details, please refer to Java2 Platform

document (

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html

).

¸

You can see many examples of using these regular expressions in the later chapters in this

document.