Suchart.Blog –> ITupstart.com

Regular Expressions

TODO…

Regular Expressions

^

Matches at the beginning of string

$

Matches at the end of string

.

Matches for a single character

*

Matches for zero or more of preceding character

+

Matches for one or more of preceding character

?

Matches for zero or one of preceding character

[ABC]

Matches for any one character in the set of characters, i.e., A, B, or C

[^ABC]

Matches character not in the set of characters, i.e., A, B, or C

[A-Z]

Matches for any character in the range from A to Z

A|B

Matches either A or B

(AB)+

Matches one or more sets of AB

..From Linux Shells by Example by Ellie Quigly

…………

Resources

Linux Shells by Example by Ellie Quigly

# man grep

# man regex

No Comments Yet »

ยังไม่มีความเห็น

RSS feed สำหรับความเห็นต่อเรื่องนี้ TrackBack URI

ใส่ความเห็น

บลอกที่ WordPress.com .