Programming/Perl(2)
-
[PERL] 정규식
.영문 딱 한자 h.t hat, hit, that ^문자열의 맨 처음 ^h.t hat, hit (that은 안됨) ^.e he, me, regard $문자열의 맨 마지막 h.t$ hat, hit, that *0 이상의 문자. 앞에 항상 문자가 있어야 한다. h*t, (*t는 에러 발생) hat, gt, ht, t, tst, haaaaaat +1 이상의 문자 h+t (+t는 에러 발생)hat, haaaat, hiiit ?0 또는 1개의 문자 s?he (?he는 에러 발생) she 또는 he [st]he she 또는 the ^[st]he문자열의 처음에 있는 she 또는 the [a-z]소문자 한 문자. [a-zA-Z]소문자 또는 대문자 한 문자. [0-9]십진수 한자 ..
2012.12.26 -
[PERL] perl 시작
#/usr/local/bin/perl#hello.pl print "Hello World\n"; perl의 실행> perl
2012.12.26