Moreover, the postfix operators
char denotes the character char for all non-special chars \
chardenotes the character char for special characters .
,\
,*
,+
,?
,[
and]
.
denotes any single-character word [
set]
denotes any single-character word belonging to set. Intervals may be given as in [a-z]
.[^
set]
denotes any single-character word not belonging to set. regexp *
denotes the Kleene star of regexp regexp +
denotes any concatenation of one or more words of regexp regexp ?
denotes the empty word or any word denoted by regexp regexp1 |
regexp2denotes any words in regexp1 or in regexp2 regexp1regexp2 denotes any contecatenation of a word of regexp1 and a word of regexp2 (
regexp)
parentheses, denotes the same words as regexp.
Figure 2.1: Syntax of regular expressions
*
, +
and ?
have priority over the concatenation, itself having priority over alternation with |
':'
))
"marche:G6H3a656h6g56:534:180:Claude Marche:/home/marche:/bin/bash"
returns [ "marche" ; "G6H3a656h6g56" ; "534" ; "180" ; "Claude Marche" ; "/home/marche" ; "/bin/bash"].'a'
) (char 'b'
))) (char 'c'
) in'\\'
_ '.'
'*'
'+'
'?'
'|'
'('
')'
'['
']'
'\\'
_ '\\'
] '-'
_ Moreover, the postfix operators
char denotes the character char for all non-special chars \
chardenotes the character char for special characters .
,\
,*
,+
,?
,|
,[
,]
,(
and)
.
denotes any single-character word [
set]
denotes any single-character word belonging to set. Intervals may be given as in [a-z]
.[^
set]
denotes any single-character word not belonging to set. regexp *
denotes the Kleene star of regexp regexp +
denotes any concatenation of one or more words of regexp regexp ?
denotes the empty word or any word denoted by regexp regexp1 |
regexp2denotes any words in regexp1 or in regexp2 regexp1regexp2 denotes any contecatenation of a word of regexp1 and a word of regexp2 (
regexp)
parentheses, denotes the same words as regexp.
Figure 3.1: Syntax of regular expressions
*
, +
and ?
have priority over the concatenation, itself having priority over alternation with |
':'
))
"marche:G6H3a656h6g56:534:180:Claude Marche:/home/marche:/bin/bash"
returns [ "marche" ; "G6H3a656h6g56" ; "534" ; "180" ; "Claude Marche" ; "/home/marche" ; "/bin/bash"].'"'
® "\\\""'\\'
® "#92"This document was translated from LATEX by HEVEA.