Shorthand character classes

A number of shorthand character classes are available. The following table shows each of these:

Shorthand

Description

Character class

d

Digit character

[0-9]

s

White space (space, tab, carriage return, new line, and form feed)

[ f]

w

Word character

[A-Za-z0-9_]

 

Each of these shorthand classes can be negated by capitalizing the letter. [^0-9] may be represented using D, S for any character except whitespace, and W for any character except a word character.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.71.94