450007
; ; ;
H030 A 1673-9876 2013 02-0033-04
Abstract The establishment and application of corpus is inseparable from corpus processing and in the meanwhilethe re-
trieval and replacement of corpus is also very important in corpus studies All these tasks and implementation are inseparable
from the use of regular expressions whose application runs throughout corpus studies from beginning to end Based on thisthis
article first introduces the concept and function of regular expressions and then discusses their compositionobtaining and ap-
plication in the retrieval and replacement and other aspects in corpus studies
Key words regular expressions composition obtaining application
1 2
2010 17
\S + ility
ility
\S +
2011 95
hi hihi
AntConcPowerGEPEditPadPro
PatternBuilder
2011 26
\S +
\ \w + * @ - \ w + *
Email \ 0 \d 2 - \d 8
010 88886666 022-22334455
2009 65 02912345678 1 \d 10
33
PPH1 \s \S + _VM \s \S + _VB0I\s \S + _JJ \s \S + _CST
\ S + _VH \ w* \ s \ S + _
X\w + \s * \S + _V \wN \s
Claws TreeTagger
+ have + done
\ w + _ \ w + _B
\S + _VM \w* \s \S + _XT\w + \s * \S + _VH \w
http
\ \zh wikipedia org \wiki \
4 1
\w + _NN1
\w + _VV \w + \w AntConc PowerG-
+ _JJ \w + _-ing EP
\w + _VDG\w + _V \wN 4 1 1
to to_TO be
\w + _VB \w \S + VM \s \wly \jj ly
not \ w + _XXIt iIt_ \wly \rb ly \S
PPH1 that CST + ility ility
ability
inabilitypossibility
st ay | ays | aying |
ayed stay staystaysstayingstayed
It is + adj + that PPH1 \s \S + _ \S + _N \w +
\S + _NP \w*
\
VBZ \s \S + _JJ \s \S + _CST S + _V \w + be \S + VB \w +
It was + adj + that PPH1 \ s \ S
+ _VBDZ \s \S + _JJ \s \S + _CST ask for \bask * \b
It may be + adj + that \S + _VV \S + \s \S + _ \S + \s
34
are some items in front of him At firstwordlesslyhe took
AntConc 3 3 5w take out an empty glass jar And he started to pick up
1 File Open File s rocks put it right to the top of jar The rocks quickly filled
Open Dir fill up the jar jaw And he asked his students wheth-
2 Search Term er this jar was is full All of his students said say
Search Term egex yes
EditPad
3 Start
Pro
4 1 EditPad Pro
Search Show Search Panel
23
Search eplace
4 1 2
Search eplace High-
light
Expression
Search Term
2 EditPad Pro File
Open
3 Search *
\S + _VB \S + \s \S + _VVBDHG \s
replace all
\S + _V \w + \s \S + _NP\w + \s \S + _NP\w + \
watch + \ + do
b 4 3
Search
watch \w* _V \w + \s \S + \s 0
2 \w + _PN\w + \s Task \s \d TASK 1
\w + _V \wI watch + \ + replace all
TASK 1
doing watch \w* _V \w + \s \S + \s 0
2 \
w + _PN\w + \s \w + _V \wG
Search * |
TASK 0-9
TASK 1
replace all
4 2 s / \ ^
EditPad Pro PowerGEP ascii + / / /
\ t\S \-+ \
\ \w \ \-+ \
1
2 3
4 2 1
4 2 2
2008 56-57
TASK 1 a EditPad pro Search
SPOKEN TEM4 GADE2 YEA06 \S + _ \S + b EditPad pro eplace
GOUP001 TASKTYPE 1 2 3 SEX T1 = MT2 = M $ 1 c eplace All
T3 = MM ANK = 1
Detagging Tool
TASK 1 4 2 3
A philosophy professor stood before his class And there
35
EditPad pro eplace 2009 2 65-73
3 M
S|
\2
2010
5 4
J 2011 1 95-98
5 M
2008
6 J 2011 2
23-26
2012
2012-
GH-374
ZGW-
*
YJYJJ2012A53
1Ben Forta
M
2012-09-26
2007
2 J
36