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

Advertisements

ให้ความเห็น »

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

RSS feed for comments on this post. TrackBack URI

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

สร้างเว็บไซต์หรือบล็อกฟรีที่ WordPress.com.

%d bloggers like this: