Hachoir-Regex. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Victor Stinner
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://fusil.hachoir.org/trac
Hachoir-Regex. ű×
Hachoir-Regex. ¼³¸í
Á¤±Ô½Ä Á¶ÀÛ ÆÄÀ̽㠶óÀ̺귯¸® Hachoir-Regex ÀÀ¿ë ÇÁ·Î±×·¥Àº Á¤±Ô½Ä Á¶ÀÛ ÆÄÀ̽㠶óÀ̺귯¸®ÀÔ´Ï´Ù. ±×°ÍÀº Hachoir-SubfileÀÌ ºü¸¥ ÆÐÅÏ ÀÏÄ¡ (ÆÄÀÏ Çì´õ ã±â)¸¦ À§ÇØ »ç¿ëµË´Ï´Ù. q> Hachoir_core.Regex °¡Á® ¿À±â ±¸¹® ºÐ¼®, CreateString >>> createString ( "ÀÚÀü°Å") | createstring ( "¸ðÅÍ") >>> createString ( "big") + createstring ( "bike") >>> r = ÆĽº ( ' ¸») ') >>> r.minlength (), r.maxlength () (3, 5) ÃÖÀûÈ >>>¿¡¼ hachoir_core.regex °¡Á® ¿À±â ±¸¹® ºÐ¼®, createstring >>> ±¸¹® ( "(ma | mb mc)") >>> createstring ( "moto") | ±¸¹® ºÐ¼® ( "MOT.") <Á¤±Ô½Ä ¹× 'mot'> Pattern MatchingFrom Hachoir_core.Regex °¡Á® ¿À±â PatternMatchingP = PatternMatching () P.AddString ( "UN", 1) P.AddString ( "Deux", 2) P.AddRegex ( "(Trois | Three)", 3) ½ÃÀÛ, ³¡ p.searchÀÇ Ç׸ñ ( "UN Deux Trois") : % s : user = % r "% (Ç׸ñ, ½ÃÀÛ, item.user) ã±â 0 : user = 1 3 : »ç¿ëÀÚ = 2 8 : »ç¿ëÀÚ = 3 ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã ÀÌ ¸±¸®½º¿¡¼´Â »õ·Î¿î ±â´É : ¡¤ ÆÐÅϾøÀÌ ÆÐÅÏ ¸ÅĪÀ» refix
Hachoir-Regex. °ü·Ã ¼ÒÇÁÆ®¿þ¾î