- , .
,
. Grep 쳺
, : "basic", "extended" "perl"
(, Perl).
(basic) (extended) .
,
.
,
.
:
^ -
$ -
[a-z] - -
[^a-z] - - ,
[abil] - -
[ ^azx] - - ,
. - -
* - - , *
+ - - , +
? - , ?, (
)
& - , , ,
, :
[:alnum:]
- : [:alpha:] i [:digit:].
[:alpha:]
: [:lower:] i [:upper:].
[:blank:]
: space i tab.
[:cntrl:]
, . ascii, 000 037,
177(DEL). , - , .
(Control characters. In ascii, these characters have octal codes 000 through 037,
and 177 (DEL). In other character sets, these are the equivalent characters, if any.)
[:digit:]
: 0 1 2 3 4 5 6 7 8 9.
[:graph:]
: [:alnum:] i [:punct:].
[:lower:]
: a b c d e f g h i j k l m n o p q r s t u v w x y z.
[:print:]
: [:alnum:], [:punct:], i space.
[:punct:]
:! " # $ % & () * +, -. /:; < = >? @ [ \ ] ^ _ { |
} ~.
[:space:]
: tab, newline, vertical tab, form feed, carriage return, and space.
[:upper:]
: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z.
[:xdigit:]
س : 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f.
. , . , , . .
|
|
, ^ () $ (). ֳ . ^, .
. (), , - . ³ , - .
|, . ᒺ , - . , Bob Robert , Bob|Robert - . ϳ, ᒺ , .
tr[ae]y. ֳ , tray|trey tr(a|e)y. , ( ). tr(a|e)y , tra|ey tra ey . 䳺 .
. . .