KTUGFaq

KTUG FAQ

α:
йȣ:
You will be honored for contributing your time and skill to a worthy cause.
FrontPage占쏙옙占쌜깍옙占쏙옙&value=KC2007/HelpOnFormatting › RegularExpression
ǥ Ͽ մϴ.

1 ǥ̶
1.1 ǥ
2
3 ũ
4 Tips
5 Utility
[]

1 ǥ̶

  • Command λ󿡼 Ȯڿ abc ϴ ̸ ˰ dir abc.* ǥ մϴ. ⿡ * ǥ everything ǥϴ ǥ Դϴ.
    • ^ ڿ ó, $ ڿ , + ϳ̻ , * 0 ̻ ǹԴϴ. ̿ܿ ϴ.
    • ǥ ڿ Ͽ ĪǴ° Ǵϴ 뵵 ַ մϴ.
      •  a+def ǥĿ aaadef Ī def Ī ʽϴ.
  • ǥ Regular Expression ̶ Ϻ ѹȭ ѰԴϴ. ǥ Automata ̷п ϰ ǰ, Compiler ̷п մϴ. Ϸ 鶧 ϴ Lex ҽڵ忡 Identifier, Reserved ã ؼ ǥ մϴ.
[]

1.1 ǥ

  • ǥ  ã ׳ ϴ 뵵 մϴ.
    • vi ͷ Ҷ 2 κ 4α ó ٿ 4 ־ 찡 ϴ. ̶ ϸ մϴ. 2,4s/^/ /g
    • LaTeX description environment Ǿ ִ ѹ itemize ٲٰ perl ̿Ѵٸ ֽϴ. ǹ̴ 'global(g)ϰ substitute (s) description ̶ itemize (substitute)϶' ǹ̰ ˴ϴ. ̳ ̿ ǥ ֽϴ.
  while (<>) {
    s/description/itemize/g;
  }
  •  ݺǴ pattern ãƺ 츦 ô. 츮 ã ϴ pattern <sup >(\d)</sup></a></span>(.*)</div></footnote> սô. ǥ ٸ ǥ ƴմϴ. ׳ 츮 б ϰ Դϴ. Pattern 2 մϴ.
\def\jstoday{2004-12-17 16:12:00} \input htex \input onmouseover.4ht  <js><footnote>fn1x0=<div class="js"><span class="footnote-mark"><a
 id="fn1x0">    <sup >1</sup></a></span>̳ ⱸ ̿ؼ  ³ 굵 Ա 캸
</div></footnote>
<footnote>fn2x0=<div class="js"><span class="footnote-mark"><a
 id="fn2x0">    <sup >2</sup></a></span> **********************Դϴ</div></footnote>

   <>    ol_hauto = 1;                                                                                                            </></js>

#!/usr/bin/perl
open(RFH,$ARGV[0]) || die $!;
while(<RFH>){
        $tex_content .= $_;
        }
close RFH; #켱 ʿ ȭϿ ü Į data ҷ Դϴ.
while ($tex_content =~ m{<sup >(\d)</sup></a></span>(.*?)</div></footnote>}gms) #Ⱑ  ߿ pointε.ؿ ϰڽϴ.
{
print "\n\n$1\n $2\n";
}
ϸ ˴ϴ. * 쿡 ־ modifier 캸 msڴ line óϱ ؼ ٿ ̸, gɼ data match ϶ Դϴ. ⼭ $2 شϴ (.*?) ִµ, ̰ ǹ̴ .* (Խ غο ǽ ǥԴϴ.) ؼ 2° match ʰ ϱ Դϴ.(?) ׸ while match data ʾ, match κк ٽ match õ ϶ ǹԴϴ. ڼ ü̳ Tutorial ñ ٶϴ.
[]

2

[ISBN-8979142269]
    • :) :) :) :) :) ̳׸ ¡ ξ̰ ǥ ϰ ֽϴ. ´ ׸̶ մϴ. ȣ Ÿ ׷ մϴ. å ϴ. ( ϴ Դϴ.) -- hermian
[ISBN-0321112547] -- smcho
[]

4 Tips


[]

5 Utility

Regular Expression Coach, Regular Expression нϴµ ־ Դϴ. Lisp , ˴ϴ.
ٿ ֳ? mailing ϴ ǰ? --hermian
α׷ ٿε Ҹ ߰Ͽϴ. -- smcho

α׷ ٿε [http]http://weitz.de/regex-coach/ ϸ Ʈ [http]http://common-lisp.net/mailman/listinfo/regex-coach

ѱWindowsȯ濡 Ʈ displayϴµ ó ʿմϴ. regedtؼ HKEY_CURRENT_CONFIG/software/fonts . hgvafix.fon -> vgafix.fon hvgasys.fon -> vgasys.fon vga949.fon -> vgaoem.fon

-- smcho


Contributors : smcho,hermian

SeeAlso. Nsmk:Խ


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-01-28 10:50:55
Processing time 0.0530 sec