Perl Regexp

Ако ви се е повредил Windows, не знаете какво да правите с Linux или не знаете как се правят аквариуми - това е мястото за вас
Аватар
LuD
The Sinner's Priest ;-]
The Sinner's Priest ;-]
Мнения: 205
Регистриран на: 10 Окт 2012 15:44
Местоположение: Sofia
Обратна връзка:

Perl Regexp

Непрочетено мнение от LuD »

Log ot prowelata se na 01.05.2003 w #IRCHelp na tema 'Regulqrnite izrazi w Perl Part I'

Specialni blagodarnosti izkazwame kym Blady (Nikolaj Plamenov).

[14:02:36] <@ircnewbie> ta .. dneska shte goworim za perl regular expressions
[14:02:38] * usr ([email protected]) has joined #irchelp
[14:03:07] * Gliner ([email protected]) has joined #irchelp
[14:03:07] * Gliner.UniBG.org sets mode: +o Gliner
[14:03:07] * Gliner sets mode: +v desync
[14:03:07] * Gliner ([email protected]) has left #irchelp
[14:03:08] <+desync> np:>
[14:03:10] * The_Havoc ([email protected]) has joined #irchelp
[14:03:14] * The_Havoc ([email protected]) has left #irchelp
[14:03:15] <@ircnewbie> za da goworim za kakwoto i da e swyrzano s perl i perl regexp trqbwa da imate na4alna predstawa kawko e promenliwa ($string)
[14:03:16] * Scooby ([email protected]) has joined #irchelp
[14:03:27] * Lirex ([email protected]) has joined #irchelp
[14:03:28] <@ircnewbie> da znaete kakwo e operator
[14:03:45] * WILD-CHILD ([email protected]) has joined #irchelp
[14:03:46] * CS sets mode: +v Lirex
[14:03:50] <@ircnewbie> i estestweno za da wi bydat polezni regulqrnite izrazi trqbwa da wi byde qsen perl kato cqlo za da mojete da si swyrshite rabotata
[14:03:52] * ircnewbie sets mode: -v Lirex
[14:03:58] <@ircnewbie> perl e izmislen za towa
[14:04:01] <@ircnewbie> da mojete da si wyrshite rabotata lesno
[14:04:13] * Lirex ([email protected]) has left #irchelp
[14:04:15] <@ircnewbie> regulqrnite izrazi sa po4ti edni i syshti nawsqkade
[14:04:32] <@ircnewbie> TCL, sed, awk, gawk, grep taka 4e daje da ne znaete mnogo dobre perl shte sa wi polezni
[14:04:39] * Kolumbieza^^^ is now known as SyrDiDikO`
[14:04:50] * SyrDiDikO` is now known as SyrDiDikO
[14:04:51] <@ircnewbie> nqma da zapo4wame ot basic a naprwo shte pristypim kym regexp
[14:05:00] <@ircnewbie> mojete da izpolzwate regulqrnite izrazi da namerite 6ablon w string
[14:05:09] * [Aldo^^MaNiYkA] ([email protected]) Quit (Deiba i 8 komp da eba sqka ve4er e taka MuPo_ oprai go ma kurvo ina4e 6ta eba kato en4o peef magare da znae6 enef are pa)
[14:05:12] * Fireman is on IRC
[14:05:16] * Hillsongs (~[email protected]) has joined #irchelp
[14:05:23] * SyrDiDikO is now known as Kolumbieza^^^
[14:05:24] <@ircnewbie> naprimer za da potyrsite dadeno ime w spisyk ot telefoni ili wsi4ki imena zapo4wasti s bukwata a
[14:05:30] * TEKILAMAN ([email protected]) Quit (ae 4ao na vseki koito me znae, a na tozi koito ne da se ebe)
[14:05:38] <@ircnewbie> sywpadenieto po 6ablon e edno ot naj-mostnite sredstwa na perl
[14:05:50] <@ircnewbie> i weroqtno edno ot naj-zle razbranite :)
[14:06:02] * abruski is now known as abruski-lekciq
[14:06:08] <@ircnewbie> no sled tazi lekciq se nadqwame 4e ste mojete da borawite s regulqrnite izrazi
[14:06:12] * NewBoy is now known as NewBoy[lekcia]
[14:06:24] <@ircnewbie> tolkowa dobre kolkoto edin perl guru ;)) (viziram blady ;b)
[14:06:38] <@ircnewbie> s malko praktika ste mojete da prawite neweroqtni nesta prosto taka na ryka ;))
[14:06:58] <@ircnewbie> regulqrnite izrazi w Perl sa tri wida: za sywpadenie za razmqna i za translaciq
[14:07:04] <@ircnewbie> operatora za sywpadenie e m//
[14:07:15] <@ircnewbie> kojto wrysta istina ili lyja
[14:07:29] <@ircnewbie> operatoryt za zamqna zamenq edin izraz s dryg 4rez s//
[14:07:31] * Cold_Maker ([email protected]) has left #irchelp
[14:07:53] <@ircnewbie> operatoryt za translaciq translira edni simwoli w drugi toj e tr//
[14:08:06] <@ircnewbie> tezu operatori izpolzwani taka kakto gi opisahme
[14:08:14] <@ircnewbie> po podrazbirane sa za magi4eskiqt $_
[14:08:25] * Scooby ([email protected]) has left #irchelp
[14:08:44] <@ircnewbie> . * ? + {} [] () ^ $ | \ - towa sa simwolite na koito trqbwa da obyrnete specialno wnimanie
[14:08:56] <@ircnewbie> te imat specialno zna4enie w 6ablonite
[14:08:58] <@ircnewbie> za tqh shte goworim po kysno
[14:09:04] * IVO__15 ([email protected]) has joined #IRChelp
[14:09:07] <@ircnewbie> sega shte dadem malko primeri
[14:09:13] * aiRCnuHk0 is now known as aiRCnuHk0`nana
[14:09:31] <@ircnewbie> m/6ablon/ - tozi operator wrysta istina ili lyja ako 6ablona e nameren w $_
[14:09:44] <@ircnewbie> s/6ablon/zamqna/ - tozi operator zamenq pod-string
[14:09:53] * _-_-_-_-_-_-_-_ is now known as yngosu
[14:09:57] * yngosu ([email protected]) Quit ((cyp): BitchX: ribbed for her pleasure!)
[14:10:00] <@ircnewbie> kojto sywpada s 6ablona za zamqnata
[14:10:07] * miss_misteriq ([email protected]) has joined #irchelp
[14:10:08] * The_Shit ([email protected]) has joined #irchelp
[14:10:14] * UzEr4e (~[email protected]) has joined #irchelp
[14:10:26] <@ircnewbie> tr/simwoli/zamqni/ tozi operator zamenq simwolite opredeleni 4rez simwoli s simwolite opredeleni ot zamqni
[14:10:34] * Fireman has left IRC
[14:10:42] <@ircnewbie> mojete da izpolzwate bajnding (binding) operatora
[14:11:02] <@ircnewbie> za da tyrsite w druga promenliwa razli4na ot $_ po natatyka ste goworim za towa
[14:11:25] <@ircnewbie> kakto operatora za sywpadenie (m//) taka i operatoryt za zamqna (s///) izpylnqwat interpolaciq na 6ablona i zamqna
[14:11:48] <@ircnewbie> towa e udobno ako iskate da pro4etete 6ablona naprawo ot klawiaturata
[14:11:52] <@ircnewbie> ot fajl ili ot string
[14:11:57] * The_Shit ([email protected]) has left #irchelp
[14:12:00] * _RENEGAT- is now known as _RENEGAT{off
[14:12:02] <@ircnewbie> ako sywpadastiqt 6ablon e prazen string
[14:12:08] <@ircnewbie> posledniqt waliden 6ablon se izpolzwa
[14:12:16] * UzEr4e (~[email protected]) has left #irchelp
[14:12:22] <@ircnewbie> taka 4e ako widite izraz kato if //; w Perl
[14:12:31] * meim is on IRC
[14:12:38] <@ircnewbie> wijte predi6niqt regulqren izraz za da widite kakwo wsystnost prawi tozi
[14:12:47] * jfkla ([email protected]) has joined #IRChelp
[14:12:55] <@ircnewbie> operatoryt za zamqna systo interpolira potozi na4in praznite stringowe za sywpadenie
[14:12:58] <@ircnewbie> |> pipe:[5032114]
[14:13:01] <@ircnewbie> ops
[14:13:11] <@ircnewbie> towa trqbwashe da byde |> Hammerfall - Dreams Come True
[14:13:18] * j-dog ([email protected]) has joined #irchelp
[14:13:23] * j-dog ([email protected]) has left #irchelp
[14:13:34] * Svetlio_ ([email protected]) has joined #irchelp
[14:13:37] <@ircnewbie> sega da pogoworim za razgrani4awlasti 6ablonite simwoli i razli4nite tipowe regulqrni operatori
[14:13:51] <@ircnewbie> sled towa ste pogoworim kak da syzdawame 6abloni
[14:13:54] -NewBoy[lekcia]- I'm aWaY ( Reason : Chete lekciata v IrcHelp ) (-=KeHcHo=-)
[14:14:24] <@ircnewbie> i ste dadem malko primeri za da razberete za kakwo mogat da wi poslujat wse pak regulqrnite izrazi :))
[14:14:33] <@ircnewbie> wseki operator za regulqren izraz
[14:14:44] <@ircnewbie> wi pozwolqwa da izpolzwate alternatiwni razgrani4iteli
[14:15:01] * cRouSs (~[email protected]) has joined #irchelp
[14:15:02] * ma40[dead] is now known as ma4omen
[14:15:03] <@ircnewbie> razgrani4itelq markira na4aloto i kraqt na dadeniqt 6ablon
[14:15:13] * Bow ([email protected]) has joined #irchelp
[14:15:21] * Ro6lioto ([email protected]) has joined #irchelp
[14:15:23] <@ircnewbie> m//; wijdate standartniqt razgrani4itel, naklonenite 4erti
[14:15:31] <@ircnewbie> kakto i da e
[14:15:34] * vod4o (~[email protected]) has joined #irchelp
[14:15:37] <@ircnewbie> mojete da izpolzwate wseki simwol kato razgrani4itel
[14:15:55] <@ircnewbie> towa e polezno ako iskate da izpolzwate naklonenite 4erti wyw wa6iqt 6ablon
[14:16:19] * cRouSs (~[email protected]) has left #irchelp
[14:16:27] <@ircnewbie> primerno za da naprawite sywpadenie s fajl obiknowenno ste naprawite taka : m/\/root\/home\/pr0n.dat/
[14:16:47] <@ircnewbie> tozi izraz e truden za 4etene tyj kato wsi4ki 4erti trqbwa da bydat izbegnati
[14:17:09] <@ircnewbie> ako izpolzwate alternatiwen razgrani4itel izraza moje da izglejda taka m!/root/home/pr0n.dat!
[14:17:25] <@ircnewbie> dori i m{/root/home/pr0n.dat}
[14:17:26] * miss_misteriq ([email protected]) Quit
[14:17:35] <@ircnewbie> kakto wijdate tezi primeri sa malko po razbrani
[14:17:48] * Svetlio_ ([email protected]) Quit (Ping timeout: 180 seconds)
[14:17:51] <@ircnewbie> posledniqt primer systo taka pokazwa 4e ako se izpolzwa otwarqsta skoba
[14:17:55] * CnuPo|0u7 ([email protected]) Quit (Ping timeout: 180 seconds)
[14:17:59] <@ircnewbie> kato na4alen razgrani4itel
[14:18:09] <@ircnewbie> krajniqt razgrani4itel trqbwa da byde zatwarqsta skoba
[14:18:23] <@ircnewbie> kakto sywpadastiqt taka i operatoryt za zamqna
[14:18:37] <@ircnewbie> wi pozwolqwat da izpolzwate interpolaciq na promenliwi
[14:18:47] <@ircnewbie> znaete li kakwo e interpolaciq ?
[14:18:57] <@ircnewbie> ako nqkoj neznae da msg Blady da obqsnim
[14:19:13] <@ircnewbie> so ? .. nothin
[14:19:13] * CS sets mode: +v NewBoy[lekcia]
[14:19:29] <@ircnewbie> NewBoy[lekcia]: molqte stoj bez voice .. samo kojto ima wypros
[14:19:31] * ircnewbie sets mode: -v NewBoy[lekcia]
[14:19:32] * CnuPo|0u7 ([email protected]) has joined #IrcHelp
[14:19:34] <+Blady> ircnewbie moje6 da obqsni6
[14:19:41] <@ircnewbie> oaky
[14:19:59] <@ircnewbie> primerno ako w shablona ima promenliwa nejnata stojnost shte byde zamestena
[14:20:05] <@ircnewbie> a nqma da se izpolzwa bukwalnoto zna4enie na promenliwata
[14:20:17] <@ircnewbie> t.e $string = 'abc'; ako se izpolzwa $string w shablon
[14:20:23] <@ircnewbie> nqma da se wzeme bukwalnoto zna4enie na $string
[14:20:29] <@ircnewbie> a shte se wzeme abc w shablona
[14:20:33] <@ircnewbie> towa e
[14:20:41] <@ircnewbie> syshtoto se otnasq i za @array %hash
[14:21:03] <@ircnewbie> mojete da se wyzpolzwate ot towa i da izpolzwate edini4ni kawi4ki
[14:21:17] <@ircnewbie> za koito ne e nujno dwojnata kawi4ka da byde izbqgwana
[14:21:38] * CS sets mode: +v nik666
[14:21:39] <@ircnewbie> $file = '/root/home/pr0n.dat'; m/$file/;
[14:21:40] <+nik666> vypros
[14:21:49] <@ircnewbie> dam
[14:22:04] <+nik666> kak se interpolira mnogomeren masiv ili hesh v shablona ?
[14:22:07] * gumutpob has left IRC
[14:22:38] <@ircnewbie> ako znaesh kak izlizat ARRAYblabla po systiq na4in
[14:22:38] <+nik666> izobshto, malko e mygliava koncepciata za masiv i hesh v shablon, imam predvid, kak se vzimat v predvid elementite im
[14:23:46] * IVO__15 ([email protected]) Quit (IVO__15 - THE BEST)
[14:23:51] <@ircnewbie> qsno li ti e ili da dadem primer ?
[14:24:06] * ma4omen ([email protected]) Quit (- Защо охлювът не може да кара мотор? - Защото ще му се веят очите. < BGmIRC 1.08)
[14:24:14] <+nik666> za mnogomernite iasno, a za normalnite ?
[14:24:34] * mafia_boy ([email protected]) has joined #irchelp
[14:24:46] <+nik666> ako @arry=(1,2,3,4); m/@arry/; shte se chete kak ?
[14:24:50] <+nik666> m/1234/; ?
[14:25:06] * CS sets mode: +v Kolumbieza^^^
[14:25:10] <+Kolumbieza^^^> :>
[14:25:13] <@ircnewbie> kato 1 2 3 4
[14:25:15] * Ivtcho is on IRC
[14:25:18] <+Kolumbieza^^^> kak e narode
[14:25:19] * ircnewbie sets mode: -v Kolumbieza^^^
[14:25:20] * CS sets mode: +v mafia_boy
[14:25:22] <+mafia_boy> 3¤ 12Thanks For The 10+6 CS 3 BreaKe-ScrIpT v0.1b ¤
[14:25:24] <+mafia_boy> nqkoi moje li da mi kaje za6to ediniq boti pi6e :
[14:25:26] <+mafia_boy> User file rejected by eHuTa: You are not marked for sharing with me.
[14:25:31] * ircnewbie sets mode: -o+b mafia_boy *!*[email protected].*
[14:25:31] * mafia_boy was kicked by ircnewbie (RRRAWK! Polly wanna cracker?)
[14:25:38] <+nik666> iasno, 10q
[14:25:50] <@ircnewbie> nik t.e towa koeto moje da se interpolira ot @ar
[14:25:51] <@ircnewbie> ako ne moje se wijda kakto se wijda pri print
[14:25:52] * CS sets mode: -v Kolumbieza^^^
[14:26:03] <@ircnewbie> t.e HASHalabala ARRAYalabala
[14:26:09] <@ircnewbie> got it ?
[14:26:12] <+nik666> yeah
[14:26:17] * CS sets mode: -v nik666
[14:26:18] * Ivtcho has left IRC
[14:26:39] <@ircnewbie> ta da se wyrnem na primera kojto dadohme zashtoto moje na nqkoj da ne im e stanalo qsno
[14:26:40] * Street_Voice ([email protected]) has joined #irchelp
[14:26:41] <@ircnewbie> <ircnewbie> $file = '/root/home/pr0n.dat'; m/$file/;
[14:26:47] * Beliata|0u7 is now known as Beliata
[14:26:48] * Street_Voice ([email protected]) Quit (8GOLDscript 8v1.2. Get It At wWw.8GOLDscript.HiT.bG)
[14:27:03] <@ircnewbie> moje da wi se stori 4e tazi tehnika e po qsna ot kolkoto da smenqte razgrani4itelq
[14:27:04] * vod4o (~[email protected]) Quit (9,1OperScRipT v4.5 by 11ShakE14,14%15,15%0,0%15,15%14,14%9,1Get yours at 4http://opers.hit.bg)
[14:27:14] * Zajo_ ([email protected]) Quit (exiting)
[14:27:21] <@ircnewbie> ako izpolzwate edini4nata kawi4ka za razgrani4itel togawa nikoq promenliwa nqma da byde interpolirana
[14:27:39] <@ircnewbie> i 6ablona ste byde izpylnen taka kakto ste go zadali
[14:27:49] * Retrieving #irchelp info...
[14:27:51] <@ircnewbie> whateva
[14:28:01] <@ircnewbie> wse oste ste trqbwa da izpolzwate naklonenata 4erta
[14:28:17] <@ircnewbie> za da izbegnete meta simwolite koito po kysno ste obsydim
[14:28:47] <@ircnewbie> edin sywet nie gledame da propuskame razgrani4itelite
[14:28:59] <@ircnewbie> koito mogat da se obyrkat sys simwolite izpolzwani ot 6ablona
[14:29:20] * ANAL_FATAL__ ([email protected]) has joined #IRChelp
[14:29:21] <@ircnewbie> primerno izpolzwajki znaka za plius kato razgrani4itel (m+abc+)
[14:29:29] <@ircnewbie> ne pomaga za po dobroto wizualno wyzpriemane na programata
[14:29:31] * ircnewbie sets mode: -bbbb *!*@212.39.84.* *!*HaCkO1@*.unibg.org *!*[email protected] *!*[email protected].*
[14:29:33] * ircnewbie sets mode: -bb GoGu_CSKA*!*@* Tony_M*!*@*
[14:29:41] * _RENEGAT{off (~[email protected]) Quit (_RENEGAT- -(Script BG)-)
[14:30:03] <@ircnewbie> 4owekyt kojto 4ete kodyt moje da si pomisli 4e iskate da syberete dwa izraza wmesto da naprawite sywpadenie
[14:30:17] <@ircnewbie> wyprositelniqt znak (?) ima specialno zna4enie
[14:30:29] <@ircnewbie> ako se izpolzwa kato razgrani4itel raboti kato /
[14:30:39] * MILSEM (~[email protected]) Quit (Ping timeout: 180 seconds)
[14:30:47] <@ircnewbie> samo 4e syw6ada samo wednyj m/u izwikwaniqta na reset() finkciqta
[14:31:01] * Hillsongs (~[email protected]) has left #irchelp
[14:31:15] <@ircnewbie> towa moje da byde mahnato w po-nowite wersii na Perl taka 4e ne go izpolzwajte
[14:31:31] * gumutpob has left IRC
[14:31:33] <@ircnewbie> sega ste razgledame operatorite za koito wi goworehme po-detajlno
[14:31:47] <@ircnewbie> operatoryt za sywpadenie (m//) se izpolzwa za da se nameri daden 6ablon w string
[14:32:34] * gumutpob is on IRC
[14:32:41] <@ircnewbie> edna ot naj-4estite mu upotrebi e za gledane na specifi4en string wyw fajl primerno iskate da widite za klienti 4iito posledno ime e Johnson ili iskate spisyk s wsi4ki imena zapo4wasti s bukwata s
[14:32:51] * Rapar-4e ([email protected]) has joined #irchelp
[14:32:51] <@ircnewbie> operatoryt za sywpadenie gleda samo w $_
[14:32:57] * Bow ([email protected]) Quit (Read error: 113 (No route to host))
[14:33:01] <@ircnewbie> towa prawi izraza po kratyk
[14:33:11] * ^TheMask^[N\A] is now known as ^TheMask^
[14:33:15] * Bow ([email protected]) has joined #irchelp
[14:33:19] <@ircnewbie> zastoto ne e nujno da kazwate kyde trqbwa da stawa sywpadenieto
[14:33:31] <@ircnewbie> $_ = "AAA bbb AAA"; print "Found bbb\n" if m/bbb/; <- primer
[14:33:36] * Fireman has left IRC
[14:33:52] <@ircnewbie> Print izraza e izpylnen samo ako bbb poredicata ot simwoli e namerena w $_
[14:34:04] <@ircnewbie> w tozi 4asten slu4aj bbb ste byde nameren
[14:34:17] <@ircnewbie> taka 4e ste se pokaje Found bbb
[14:34:31] * CS sets mode: +v Rapar-4e
[14:34:32] <+Rapar-4e> :>
[14:34:35] <@ircnewbie> operatoryt za sywpadenie wi pozwolqwa da interpolirate promenliwi za da polu4ite 6ablon
[14:34:39] * Fireman is on IRC
[14:34:42] -> *cs* v #irchelp -Rapar-4e
[14:34:42] * CS sets mode: -v Rapar-4e
[14:34:43] <@ircnewbie> Rapar-4e: ako nqmash wypros si mahni voice-a molq te
[14:34:51] <@ircnewbie> primer za gornoto
[14:35:02] * numba1[CnuHkA] (~[email protected]) has left #ircHeLp
[14:35:04] * numba1[CnuHkA] (~[email protected]) has joined #ircHeLp
[14:35:09] <@ircnewbie> $needToFind = "bbb"; $_ = "AAA bbb AAA"; print "Found bbb\n" if m/$needToFind/;
[14:35:25] <@ircnewbie> izpolzwajki operatoryt za sywpadenie
[14:35:39] <@ircnewbie> e tolkowa 4esto izpolzwan w Perl 4e dori mojete da izpusnete m-to
[14:35:51] <@ircnewbie> samo trqbwa da ostawite razgrani4itelite
[14:35:56] * djdinodi ([email protected]) has joined #irchelp
[14:36:11] <@ircnewbie> $_ = "AAA bbb AAA"; print "Found bbb\n" if /bbb/;
[14:36:24] * CS sets mode: +v Kolumbieza^^^
[14:36:30] * numba1[CnuHkA] is now known as numba1stunna
[14:36:30] <+Kolumbieza^^^> trjbva mi tcl za !top10
[14:36:30] <+Kolumbieza^^^> ?
[14:36:42] -> *cs* v #irchelp -Kolumbieza^^^
[14:36:42] * numba1stunna (~[email protected]) has left #ircHeLp
[14:36:42] * CS sets mode: -v Kolumbieza^^^
[14:36:44] * numba1stunna (~[email protected]) has joined #ircHeLp
[14:36:44] * gumutpob has left IRC
[14:36:47] <@ircnewbie> izpolzwaneto na operatoryt za sywpadenie za namiraneto na string wyw fajl e mnogo lesno
[14:36:55] <@ircnewbie> Kolumbieza^^^: oshte 1 pat go naprawi i shte napusnesh kanala dokato trae lekciqta
[14:37:15] <@ircnewbie> shte wi paste malko code da wi stane po qsno
[14:37:21] <@ircnewbie> <paste>
[14:37:27] <@ircnewbie> $target = "M";
[14:37:28] <@ircnewbie> open(INPUT, "<findstr.dat");
[14:37:28] <@ircnewbie> while (<INPUT>) {
[14:37:28] <@ircnewbie> if (/$target/) {
[14:37:28] <@ircnewbie> print "Found $target on line $.";
[14:37:28] * micky (~[email protected]) has joined #irchelp
[14:37:29] <@ircnewbie> }
[14:37:31] <@ircnewbie> }
[14:37:33] <@ircnewbie> close(INPUT);
[14:37:35] <@ircnewbie> </paste>
[14:37:47] <@ircnewbie> obyrnete wnimanie 4e $. e specialna promenliwa
[14:37:55] <@ircnewbie> koqto gleda na koq liniq ste w momenta
[14:37:57] * Kolumbieza^^^ ([email protected]) has left #irchelp
[14:38:03] * BoBy-LoVe ([email protected]) has joined #irchelp
[14:38:05] * ANAL_FATAL__ ([email protected]) Quit (Ping timeout: 180 seconds)
[14:38:13] <@ircnewbie> wseki pyt kogato diamanteniqt operator pro4ita liniq promenliwata se uweli4awa s edno
[14:38:35] <@ircnewbie> tozi primer 4ete wsqka edna liniq ot klawiaturata i tyrsi za bukwata M
[14:38:39] <@ircnewbie> kogato M e namerena
[14:38:45] <@ircnewbie> print izraza se izpylnqwa
[14:38:56] * TPE3BEHuK ([email protected]) has joined #irchelp
[14:39:09] <@ircnewbie> print izraza izkarwa na ekrana bukwata koqto e namerena i liniqta na koqto e namerena
[14:39:14] * DrWatson ([email protected]) Quit
[14:39:21] * aiRCnuHk0`nana (~[email protected]) Quit (Excess Flood)
[14:39:29] <@ircnewbie> sega shte obqsnim i opciite koito mojete da zadawate kym operatora
[14:39:32] * Beliata is now known as Beliata|0u7
[14:39:49] <@ircnewbie> naj-poleznata opciq e moje bi tazi za neprawi razlika m/u malki i golemi bukwi
[14:39:59] * aiRCnuHk0`nana (~[email protected]) has joined #irchelp
[14:40:01] <@ircnewbie> i za syzdawane na masiw ot stringowite koito sa sywpadnali
[14:40:07] * aiRCnuHk0`nana is now known as aiRCnuHk0
[14:40:08] * Bad^Boy ([email protected]) has joined #irchelp
[14:40:10] * ANAL_FATAL__ ([email protected]) has joined #IRChelp
[14:40:28] * Bad^Boy ([email protected]) has left #irchelp
[14:40:37] * Chaoskiller ([email protected]) has joined #irchelp
[14:40:41] <@ircnewbie> g - tazi opciq namira wsi4ki sywpadeniq na 6ablona w stringa spisyk sys sywpadeniqta se wrysta ili mojete da obhodite wsi4ki sywpadeniq 4rez nqkakyw cikyl
[14:40:57] <@ircnewbie> i - tazi opciq ne prawi razlika m/u malkite i golemi bukwi
[14:41:09] <@ircnewbie> m - tazi opciq se otnasq kym stringa kato stryng sydyrjast nqkolko linii
[14:41:29] <@ircnewbie> Perl prawi nqkakwa optimizaciq kato ima w predwid 4e w $_ ima samo edna liniq
[14:41:36] * Rapar-4e is now known as KoSi_J
[14:41:43] <@ircnewbie> ako znaete 4e sydyrja nqkolko simwola za now red
[14:41:56] * micky (~[email protected]) Quit (Ping timeout: 180 seconds)
[14:41:59] <@ircnewbie> izpolzwajte tazi opciq za da premahnete optimizaciqta
[14:42:08] * KoSi_J is now known as qQqqqqqqqq
[14:42:11] * qQqqqqqqqq is now known as qQqqqqqqqqqq
[14:42:15] * Chaoskiller ([email protected]) has left #irchelp
[14:42:15] * micky (~[email protected]) has joined #irchelp
[14:42:21] <@ircnewbie> posle shte spomenem za kakwo to4no stawa wypros wizirajki optimizaciqta
[14:42:22] * TPE3BEHuK is now known as Spawn_SUB
[14:42:24] * qQqqqqqqqqqq is now known as KoSi_J
[14:42:31] * CoOl_BoY_ is now known as CoOl_BoY_[away]
[14:42:35] <@ircnewbie> o - tazi opciq kompilira 6ablona samo wednyj
[14:42:52] * KoSi_J is now known as LqLalLAlaALala
[14:42:54] <@ircnewbie> trqbwa da byde izpolzwana s interpolaciq na promenliwi
[14:42:57] * LqLalLAlaALala is now known as MaPTiN
[14:43:11] <@ircnewbie> samo ako stojnosta na pr0menliwata ne se promenq prez celiqt period na rabota na programata ;)
[14:43:12] * PhrozenCrew ([email protected]) has joined #irchelp
[14:43:23] * MILSEM (~[email protected]) has joined #irchelp
[14:43:23] <@ircnewbie> towa e polezno tyj kato ne se gubi mnogo CPU
[14:43:37] <@ircnewbie> s - tazi opciq se otnasq kym stringa kato string sydyrjast edna liniq
[14:43:55] <@ircnewbie> x - tazi opciq pozwolqwa da izpolzwate raz6ireni regulqrni izrazi
[14:44:03] * omeganet (~[email protected]) has joined #irchelp
[14:44:19] * aiRCnuHk0 (~[email protected]) has left #irchelp
[14:44:25] <@ircnewbie> obiknowenno towa ozna4awa 4e Perl ste ignorira praznite mesta koito ne sa izbegnati s nakloneni 4erti
[14:44:35] <@ircnewbie> ili koito ne sa w klas ot simwoli
[14:44:44] * ^3Pac^ ([email protected]) has joined #irchelp
[14:44:47] <@ircnewbie> silno prepory4wame tazi opciq!
[14:44:49] <@ircnewbie> mnoouu ;b
[14:45:07] <@ircnewbie> zastoto mojete da naprawite regulqrniqt izraz po hubaw za okoto
[14:45:15] * looney (~[email protected]) has joined #irchelp
[14:45:23] <@ircnewbie> cg - pozwolqwa tyrseneto da prodylji sled neuspe6no syglasuwane s /g
[14:45:41] <@ircnewbie> wsi4ki opcii se pi6at sled posledniqt razgrani4itel
[14:45:42] * Ek3eKyToP^^ (~[email protected]) has joined #irchelp
[14:45:59] <@ircnewbie> primerno $_ = "AAA BBB AAA"; print "Found bbb\n" if m/bbb/i;
[14:46:25] * looney (~[email protected]) has left #irchelp
[14:46:27] <@ircnewbie> tazi programa namira sywpadenie nisto 4e se izpolzwat malki bukwi w 6ablona a stringa e s golemi bukwi tyj kato e zadadena /i opciqta
[14:46:35] <@ircnewbie> |> 04 Crimson Thunder.mp3
[14:46:47] <@ircnewbie> rezultata ot globalnoto sywpadenie na 6ablona
[14:46:57] <@ircnewbie> moje da byde priswoen kym masiw
[14:47:01] <@ircnewbie> ili da byde izpolzwan w cikyl
[14:47:15] * Beliata|0u7 is now known as Beliata
[14:47:23] <@ircnewbie> tazi opciq e mnooou polezna sled kato nau4ite meta simwolite
[14:47:39] <@ircnewbie> do tuk wsi4ko qsno li wi e za tozi operator ? Blady nqkakwi wyprosi ?
[14:47:41] * SKORPY ([email protected]) has joined #irchelp
[14:47:51] 12[4ircnewbie12] is doing a /whois on you!
[14:47:52] * MaPTiN is now known as The-Watcher
[14:47:58] <+Blady> nqma
[14:48:05] <@ircnewbie> ako ne wi e stanalo mnogo qsno za opciite po kysno shte wi dadem primeri
[14:48:06] <+Blady> qvno e qsno vsi4ko
[14:48:07] <+Blady> :)
[14:48:08] * LeK|0ff ([email protected]) has joined #irchelp
[14:48:08] * The-Watcher is now known as Rapar-4e
[14:48:09] <@ircnewbie> okay .. prodyljawame
[14:48:13] * ma3x_user (~[email protected]) has joined #irchelp
[14:48:15] <@ircnewbie> ;) da e ... da im zawidish :)
[14:48:20] <+Blady> nali... ;)
[14:48:25] * Rapar-4e is now known as The-Watcher
[14:48:27] <@ircnewbie> operatora za zamqna (s///) se izpolzwa za promqna na string
[14:48:37] <@ircnewbie> Blady: shte im dadem domashno ;)
[14:48:55] <@ircnewbie> nujdae se ot dwe 4asti s/a/z/;
[14:49:03] * BadAngel (~[email protected]) Quit (Killed (NS (Ghost: ma3x_user!~[email protected])))
[14:49:08] * ANAL_FATAL__ ([email protected]) Quit (Connection reset by peer)
[14:49:08] * Dimit3r ([email protected]) has joined #IRChelp
[14:49:09] <@ircnewbie> smenq pyrwata bukwa a namerena w $_ na z
[14:49:19] * SKORPY ([email protected]) has left #irchelp
[14:49:19] <@ircnewbie> ne e tolkowa slojno a?
[14:49:27] * ma3x_user is now known as BadAngel
[14:49:32] * DreamWave ([email protected]) has joined #irchelp
[14:49:39] <@ircnewbie> towa nqma da se promeni dokato ne zapo4ne da goworim za kompiliraneto na 6abloni po kysno
[14:49:50] * The-Watcher ([email protected]) has left #irchelp
[14:49:55] <@ircnewbie> mojete da izpolzwate swojstwoto za interpolaciq na promenliwite kakto pri drugiqt operator
[14:50:11] * Bow ([email protected]) Quit (Ping timeout: 180 seconds)
[14:50:16] <@ircnewbie> $needToReplace = "bbb"; $replacementText = "1234567890"; $_ = "AAA bbb AAA"; $result = s/$needToReplace/$replacementText/;
[14:50:22] <@ircnewbie> copy si go i si go razcepete w notepad-a ;b
[14:50:23] * Dimit3r is now known as ANAL_FATAL__
[14:50:39] * SaRDiTkO ([email protected]) Quit
[14:50:41] * WILD-CHILD ([email protected]) Quit (Ping timeout: 180 seconds)
[14:50:47] * Bow ([email protected]) has joined #irchelp
[14:50:49] <@ircnewbie> mojete da izpolzwate interpolaciqta na promenliwi kakto pokazahme
[14:51:09] <@ircnewbie> no nito edin ot meta simwolite koito ste spomenem pokysno nqma da moje izpolzwan wyw wtorata 4ast na zamqnata
[14:51:23] * WILD-CHILD ([email protected]) has joined #irchelp
[14:51:23] <@ircnewbie> tazi programa smenq $_ na "AAA 1234567890 AAA"
[14:51:35] <@ircnewbie> wmesto nejnata na4alna stojnost
[14:51:55] <@ircnewbie> i $result ste byde ekwiwalenten na pyrwiqt simwol ot zamqnata
[14:52:00] * Dreamwave`ayeu ([email protected]) Quit (Ping timeout: 400 seconds)
[14:52:13] <@ircnewbie> obiknoweno tozi operator se izpolzwa za premahwane na pod-stringowe
[14:52:15] * [SteeN] ([email protected]) has joined #irchelp
[14:52:33] <@ircnewbie> naprimer ako iskate da mahnete bbb poredicata ot simwoli ot $_
[14:52:37] <@ircnewbie> s/bbb//;
[14:52:43] * micky (~[email protected]) Quit (Ping timeout: 180 seconds)
[14:52:45] * micky^brb (~[email protected]) has joined #irchelp
[14:52:47] <@ircnewbie> kato zamenqte simwolite s nisto
[14:52:54] * LeK|0ff ([email protected]) has left #irchelp
[14:52:55] <@ircnewbie> mnogo efektiwno iztriwane ;)
[14:53:02] * Napalmcho|Outta ([email protected]) Quit (I see no changes wake up in the morning and I ask myself is life worth living should I blast myself?)
[14:53:11] <@ircnewbie> ako skobi sa izpolzwani kato razgrani4itel pri 6ablona za tyrsene
[14:53:14] * Spawn_SUB is now known as TPE3BEHuK
[14:53:21] <@ircnewbie> trqbwa da izpolzwate otnowo skobite
[14:53:43] <@ircnewbie> i pri 6ablona za zamqna t.e. s{}{}
[14:54:09] <@ircnewbie> opciite na operatora za zamqna
[14:54:12] * The_Shit ([email protected]) has joined #irchelp
[14:54:15] <@ircnewbie> wklu4wat wsi4ki ot predishniqt operator
[14:54:21] <@ircnewbie> nqma smisal da wi obremenqwame nanowo s tqh
[14:54:28] <@ircnewbie> no ima i nqkoj nowi4ki
[14:54:43] <@ircnewbie> /e opciqta smenq interpretaciqta na razgrani4itelq na 6ablona
[14:54:52] * KoNDoM (~[email protected]) has joined #irchelp
[14:54:55] <@ircnewbie> ako se izpolzwa interpolaciqta na promenliwa
[14:55:08] <@ircnewbie> stawa dori i da se izpolzwat edini4ni kawi4ki
[14:55:39] <@ircnewbie> w dopylnenie ako se izpolzwat obratni kawi4ki kato razgrani4iteli 6ablona za zamqna se izpylqnwa kato DOS ili UNIX komanda
[14:55:49] <@ircnewbie> izhoda na komandata se wrysta kato tekst za zamqna
[14:55:57] <@ircnewbie> ako zadadete nqkolko e opcii
[14:56:07] <@ircnewbie> se prawqt nqkolko interpolacii na promenliwata
[14:56:42] * KoNDoM is now known as KoNDoM|Out
[14:56:46] <@ircnewbie> $bla = 'a'; $string = '$bla'; i ako se zadade /ee kato opcii pri s// operatora
[14:56:55] * The_Shit ([email protected]) has left #irchelp
[14:56:58] <@ircnewbie> $string shte byde interpolirana kato a
[14:57:10] <@ircnewbie> nqkakwi wyprosi za tozi operator ?
[14:57:11] <@ircnewbie> Blady
[14:57:21] <+Blady> az imam edin
[14:57:44] <+Blady> otnosno izpylnenieto kato DOS/UNIX komanda
[14:57:52] * Vizor ([email protected]) has joined #irchelp
[14:57:53] <+Blady> dai mi nqkakyv byrz primer
[14:57:59] * The_Shit ([email protected]) has joined #irchelp
[14:58:12] <@ircnewbie> da
[14:58:16] * Tsanko ([email protected]) has joined #irchelp
[14:58:22] * ircnewbie sets mode: +v nik666
[14:58:38] * micky^brb (~[email protected]) Quit (Ping timeout: 180 seconds)
[14:59:00] <+nik666> um dam, neshto smisleno, che dosega ne mi se e nalagalo da go izpolzvam tova ...
[14:59:01] <@ircnewbie> $str = `ls`; $str =~ s/bla/bla/;
[14:59:17] <@ircnewbie> ops ne
[14:59:17] * theJackal (~[email protected]) has joined #irchelp
[14:59:55] <@ircnewbie> t.e. da systoto e kato towa
[14:59:57] * IgNoReR is now known as IgNoReR`offline
[15:00:14] * ANAL_FATAL__ ([email protected]) Quit (bEb000linKaTaaa is now known as bAb000linKaTaaa)
[15:00:37] <@ircnewbie> razbrahte li ? ;b
[15:00:43] <+Blady> v ob6ti linii
[15:00:45] <+Blady> go on :)
[15:01:03] <+Blady> moje bi s `pwd` 6te6e da e po-dobro
[15:01:19] * Cm_MaHuaK{CS} is now known as Cm_MaHuaK
[15:01:41] * JoroMan ([email protected]) has joined #irchelp
[15:01:55] * [SteeN] ([email protected]) Quit (Trqbva da ima razlika mejdu Sazdatel i mashina, inache koi shte upravlqva sveta!!![SteeN])
[15:02:17] <@ircnewbie> da zameni go i ste e systoto
[15:02:51] * TihOmiR has left IRC
[15:03:01] <@ircnewbie> operator za translaciq (tr///) se izpolzwa za promqnata na indiwidualni simwoli w $_
[15:03:09] <@ircnewbie> tr/a/z/;
[15:03:17] <@ircnewbie> tozi izraz translira wsi4ki poqwi na a w z
[15:03:25] * Vizor is now known as roziV
[15:03:33] <@ircnewbie> ako zadadete powe4e ot edin simwol w spisyka ot simwolite za sywpadenie
[15:03:57] <@ircnewbie> mojete da translirate nqkolko symwola nawednyj
[15:04:06] * Vizor_ (~[email protected]) has joined #irchelp
[15:04:15] <@ircnewbie> tr/ab/z/; translira wsi4ki a i b simwoli w z simwoli
[15:04:44] <@ircnewbie> ako spisykyt za sywpadenie na simwoli e po kratyk ot spisykyt za zamqna na simwoli
[15:04:55] <@ircnewbie> posledniqt simwol se powtarq kolkoto trqbwa
[15:05:06] * metallist is now known as Dragonflame
[15:05:08] * SaRDiTkO ([email protected]) has joined #irchelp
[15:05:09] <@ircnewbie> ako se zadadat powe4e ot edin simwol za sywpadenie samo pyrwiqt se izpolzwa
[15:05:15] <@ircnewbie> tr/WWW/ABC/;
[15:05:25] <@ircnewbie> ste prewyrne wsi4ki W simwoli w A
[15:05:38] * WILD-CHILD is now known as Fr3eBSD
[15:05:47] <@ircnewbie> za razlika ot drugite dwa operatora tozi operator ne prawi interpolaciq na promenliwite
[15:06:15] * ^3Pac^ ([email protected]) has left #irchelp
[15:06:21] <@ircnewbie> imeto na tr operatoryt idwa ot UNIX tr iutilkata ako ste zapoznat s neq ;)
[15:06:25] * cowboetz ([email protected]) has joined #irchelp
[15:06:31] <@ircnewbie> togawa znaete za kakwo goworim
[15:06:49] <@ircnewbie> UNIX sed iutilkata izpolzwa y za da indikira translaciite
[15:06:50] * iNT04h ([email protected]) has joined #irchelp
[15:07:09] <@ircnewbie> za pomogne Perl na potrebitelite na sed ima i y operator kojto e sinonim na tr
[15:07:19] * cowboetz ([email protected]) Quit (Killed (NS (Ghost: [email protected])))
[15:07:21] * MiKroMaSTeR`0ff ([email protected]) has joined #irchelp
[15:07:35] * cowboetz ([email protected]) has joined #irchelp
[15:07:39] <@ircnewbie> operatoryt qr// (quote regexp) - citirane na regulqren izraz systo zadawa 6abloni 4rez regulqren izraz
[15:07:53] <@ircnewbie> no toj ne se opitwa da se syglasuwa s nisto (za razlika ot m//)
[15:08:19] <@ircnewbie> wypros po towa ?
[15:08:41] * Vizor_ (~[email protected]) has left #irchelp
[15:08:49] <@ircnewbie> nqma, okay
[15:08:59] <@ircnewbie> da spomenem i opciite i na tr togawa
[15:09:15] <@ircnewbie> te sa razli4ni ot drugite dwa operatora i zatowa shte gi napishem wsi4kite
[15:09:31] <@ircnewbie> c - tazi opciq dopylwa spisykyt sys simwolite za sywpadenie
[15:09:59] <@ircnewbie> s drugi dumi translaciqta ste byde naprawena za wsi4ki simwoli koito ne sa ot spisykyt sys simwolite za sywpadenie
[15:10:13] <@ircnewbie> MOLQ NQKOJ AKO IMA WYPROSI SWYRZANI S IRC /MSG abruski-lekciq ILI /MSG Crow4o
[15:10:27] * Bow ([email protected]) Quit (fractal 2.1 [Vitriol] - blade)
[15:10:33] <@ircnewbie> d - tazi opciq iztriwa wseki simwol w spisykyt za sywpadenie kojto nqma otgowarqst simwol w spisykyt za zamqna
[15:10:35] * Lord_Nykon ([email protected]) has joined #irchelp
[15:11:04] <@ircnewbie> s - tazi opciq namalqwa powtorenieto na sywpadastite simwoli do edin
[15:11:16] * PhrozenCrew ([email protected]) Quit
[15:11:22] * WinHack32 ([email protected]) has joined #irchelp
[15:11:40] <@ircnewbie> obiknoweno ako spisykyt za sywpadenie e po-golqm ot spisykyt za zamqna
[15:12:00] <@ircnewbie> posledniqt simwol w spisykyt za zamqna se izpolzwa kato simwol za zamqna na ostanalite simwoli w spisykyt za sywpadenie
[15:12:11] <@ircnewbie> ako se izpolzwa /d opciqta tezi simwoli prosto ste bydat iztriti
[15:12:15] <@ircnewbie> ako spisykyt za zamqna e prazen list
[15:12:16] <@ircnewbie> togawa nqma translaciq
[15:12:28] <@ircnewbie> operaotryt wse oste ste wrysta broqt na simwolite koito sa sywpadnali
[15:12:41] <@ircnewbie> towa e polezno ako iskate da znaete kolko pyti se powtarq dadena bukwa w string
[15:12:59] <@ircnewbie> towa predimstwo moje systo taka da kompresira powtarqstite se simwoli 4rez /s opciqta
[15:13:18] * rEsPoNsE has left IRC
[15:13:19] * AngelHell ([email protected]) has joined #irchelp
[15:13:19] * Tsanko ([email protected]) has left #irchelp
[15:13:34] * Ek3eKyToP^^ (~[email protected]) Quit (Client Quit (I-club Empire))
[15:13:36] <@ircnewbie> UNIX programistite moje da sa zapoznati s tr iutilkata za promqnata na malkite w golemi bukwi i obratnoto
[15:13:51] <@ircnewbie> Perl ima lc() i uc() funkcii koito go prawqt mnogo po byrzo
[15:14:15] <@ircnewbie> towa beshe wsi4ko za trite operatora koito se izpolzwat w regulqrnite izrazi
[15:14:16] * Shut_Up (~[email protected]) has joined #irchelp
[15:14:37] <@ircnewbie> spomenahme predi towa za operatora s kojto mojete da tyrsite w drugi promenliwi
[15:14:39] <@ircnewbie> razli4ni ot $_
[15:14:49] * usr ([email protected]) Quit (Local kill by jiashasdhkkjsad (proba mroba :)))
[15:14:57] <@ircnewbie> sega shte kajem powe4ko dumi za tqh oswen ako nqma nqkoj wyprosi po dotuk kazanoto ?
[15:14:59] <@ircnewbie> Blady ?
[15:15:23] 12[4SaRDiTkO12] is doing a /whois on you!
[15:15:23] <@ircnewbie> ykei
[15:15:29] <+Blady> ..
[15:15:37] <+Blady> <ddd_> lc() i uc() rabotqt li s kirilica?
[15:15:37] <@ircnewbie> operaciite za tyrsene, modificirane i translirane rabotqt po podrazbirane w/u $_
[15:15:39] <@ircnewbie> :)
[15:15:49] <@ircnewbie> ddd_: da rabotqt, ako se zadade locale
[15:15:55] * Batko_ti ([email protected]) has joined #irchelp
[15:15:56] <@ircnewbie> perldoc locale
[15:15:59] <@ircnewbie> i shte dobiesh info
[15:16:01] * TEHNO-MAN ([email protected]) has left #irchelp
[15:16:11] <@ircnewbie> a grshka .. man perllocale
[15:16:21] * ircnewbie sets mode: +v ddd_
[15:16:25] * Fireman has left IRC
[15:16:25] * meim has left IRC
[15:16:27] <@ircnewbie> towa iz4erpwa li wyprosa ?
[15:17:01] <@ircnewbie> kato goworim za operatorite za obwyrzwane
[15:17:27] * Fireman is on IRC
[15:17:33] <@ircnewbie> ima dwa wida takiwa operatori
[15:17:43] <@ircnewbie> normalniqt =~ i negowata protiwopolojnost !~
[15:17:55] <@ircnewbie> sega shte sledwat primer s kojto shte stane po qsno
[15:18:10] <@ircnewbie> <paste>
[15:18:13] <@ircnewbie> $scalar = "The root has many leaves";
[15:18:15] <@ircnewbie> $match = $scalar =~ m/root/;
[15:18:16] <@ircnewbie> $substitution = $scalar =~ s/root/tree/;
[15:18:16] <@ircnewbie> $translate = $scalar =~ tr/h/H/;
[15:18:16] <@ircnewbie> print("\$match = $match\n");
[15:18:16] <@ircnewbie> print("\$substitution = $substitution\n");
[15:18:17] <@ircnewbie> print("\$translate = $translate\n");
[15:18:19] <@ircnewbie> print("\$scalar = $scalar\n");
[15:18:23] <@ircnewbie> </paste>
[15:19:01] <@ircnewbie> tazi programa pokazwa slednoto: $match = 1 $substitution = 1 $translate = 2 $scalar = The tree has many leaves (samo 4e na now red wseki!)
[15:19:21] <@ircnewbie> tozi primer izpolzwa trite operatora za regularni izrazi zaedno s operatora za obwyrzwane
[15:19:35] <@ircnewbie> wseki edin ot izrazite se izpylnqwa za $scalar a ne za $_
[15:19:51] * ReX` (~[email protected]) has joined #IRChelp
[15:19:51] <@ircnewbie> ne zabrawqjte 4e pri perl reda po kojto se ocenqwa izraza e otdqsno na lqwo
[15:19:55] * cowboetz ([email protected]) Quit (Двама хакери съзряли пред тях една много красива дама. Единия казал : "-Виж какви Properties има тая !" BGmIRC 1.06)
[15:19:55] <@ircnewbie> to4no s tezi operatori
[15:20:21] <@ircnewbie> ako ne iskate da bydat wyrnati stojnosti mojete da izpolzwate
[15:20:27] <@ircnewbie> <paste>
[15:20:28] * Shut_Up (~[email protected]) Quit (Ping timeout: 180 seconds)
[15:20:33] <@ircnewbie> $scalar = "The root has many leaves";
[15:20:35] <@ircnewbie> print("String has root.\n") if $scalar =~ m/root/;
[15:20:35] <@ircnewbie> $scalar =~ s/root/tree/;
[15:20:35] <@ircnewbie> $scalar =~ tr/h/H/;
[15:20:36] <@ircnewbie> print("\$scalar = $scalar\n");
[15:20:37] <@ircnewbie> </paste>
[15:20:39] * iNT04h is now known as iNT04h|ballisti
[15:20:44] * iNT04h|ballisti is now known as iNT|ballistic
[15:20:48] * LordDoskias (~[email protected]) has joined #IRChelp
[15:20:49] <@ircnewbie> koeto wryshta String has root. $scalar = The tree has many leaves
[15:21:07] <@ircnewbie> lqwata 4ast na operatora za owryzwane e stringa w kojto ste se tyrsi
[15:21:11] <@ircnewbie> |> 02_-_The_wicker_man.mp3
[15:21:17] <@ircnewbie> modificira ili translira
[15:21:22] * Beliata is now known as Beliata|0u7
[15:21:23] * Batko_ti ([email protected]) has left #irchelp
[15:21:23] <@ircnewbie> greetings ;b
[15:21:35] <@ircnewbie> dqsnata 4ast e tazi koqto ste byde ocenena!
[15:21:51] * Zero-G (~[email protected]) has joined #irchelp
[15:21:59] * esquimaux ([email protected]) has joined #irchelp
[15:22:12] * E-M-I-N ([email protected]) has joined #irchelp
[15:22:15] 12[4Zero-G12] is doing a /whois on you!
[15:22:19] * LordDoskias (~[email protected]) has left #IRChelp
[15:22:23] * Lord_Nykon ([email protected]) Quit (Read error: 104 (Connection reset by peer))
[15:22:31] <@ircnewbie> !~ se izpolzwa samo sys operatora za tyrsene ako go izpolzwate s operatora za zamqna ili za translirane ste polu4ite slednoto syobstenie ako izpolzwate -w: Useless use of not in void context at test.pl line 4.
[15:22:50] <@ircnewbie> mojete da izpolzwate !~ koeto e obratnoto na =~ kato zamenite =~ w predi6niqt primer
[15:22:52] * CnuPo|0u7 ([email protected]) Quit (12[4 Cnupo ScripT 12] [4 Version: 1.0 12] [4 http://scriptin.hit.bg/ 12] )
[15:23:20] <@ircnewbie> pyrwiqt print nqma da se izpylni
[15:23:24] * desync ([email protected]) Quit (BitchX: now with Olestra!)
[15:23:30] <@ircnewbie> nqkakwi wyprosi do sega ?
[15:23:38] * numba1stunna is now known as numba1[DaSkAl0]
[15:23:41] * LordDoskias (~[email protected]) has joined #irchelp
[15:23:41] 12[4ircnewbie12] is doing a /whois on you!
[15:23:46] <+Blady> vsi4ko izglejda qsno
[15:23:49] <@ircnewbie> zashtoto po4wame da goworim za drugo
[15:23:51] <@ircnewbie> za syzdawane na shabloni
[15:23:54] * LordDoskias (~[email protected]) has left #irchelp
[15:23:57] <@ircnewbie> okay ;) dano
[15:24:04] <+Blady> .. :)
[15:24:08] * The_Shit ([email protected]) has left #irchelp
[15:24:27] <@ircnewbie> sega ste pogoworim za 6irokiq masiw ot meta simwoli
[15:24:35] <@ircnewbie> koito sa istinskata most na Perl regulqrnite izrazi
[15:25:00] * esquimaux is now known as cowboetz
[15:25:01] <@ircnewbie> meta simwolite sa simwoli koito imat dopylnitelno zna4enie ot normalnoto
[15:25:21] <@ircnewbie> naprimer to4kata (.) moje da ima dwe zna4eniq w 6ablon
[15:25:26] * cowboetz ([email protected]) has left #irchelp
[15:25:41] <@ircnewbie> pyrwo moje da se izpolzwa w bukwalnoto si zna4enie za sywpadenie na to4ka
[15:25:55] <@ircnewbie> (trqbwa da byde izbegnata s \)
[15:25:56] * swity ([email protected]) has joined #irchelp
[15:26:09] * ^TheMask^ (~[email protected]) Quit (Read error: 104 (Connection reset by peer))
[15:26:15] <@ircnewbie> wtoro w normalni uslowiq ste sywpadne sys wseki simwol w tyrseniqt string
[15:26:34] <@ircnewbie> oswen sys simwola za nowa liniq (\n)
[15:26:42] <@ircnewbie> towa e meta zna4enieto
[15:26:49] <@ircnewbie> nik666: obajdaj se ako propuskame neshto ;)
[15:26:56] <+nik666> yep
[15:27:07] <@ircnewbie> kogato syzdawame 6abloni meta zna4enieto winagi ste byde towa po podrazbirane
[15:27:13] * Beliata|0u7 is now known as Beliata
[15:27:17] <@ircnewbie> danke ;)
[15:27:32] <@ircnewbie> ako iskate bukwalnoto zna4enie na simwola izbegnete go s \
[15:27:46] <@ircnewbie> 6ablonite imat razli4ni komponenti
[15:28:08] <@ircnewbie> tezi komponenti sa swyrzani za da wi predostawq silata na sywpadenieto na wsqkakyw wid string
[15:28:20] 12[4ReX`12] is doing a /whois on you!
[15:28:28] <@ircnewbie> sledniqt spisyk ot komponenti ste wi dade dobra predstawa za towa
[15:28:40] <@ircnewbie> kak razli4nite 6abloni mogat da bydat syzdadeni
[15:28:55] * Fireman has left IRC
[15:29:00] <@ircnewbie> wsqka promenliwa ste byde interpolirana
[15:29:10] <@ircnewbie> i ste se syzdade now 6ablon
[15:29:44] <@ircnewbie> obqsnihme za interpolaciqta taka 4e nqma smisal da goworim pak za neq
[15:29:56] * D`AGOSTINO (~[email protected]) has joined #irchelp
[15:30:10] <@ircnewbie> wseki simwol ste sywpadne sys sebe si oswen ako ne e meta simwol
[15:30:23] <@ircnewbie> ili e edin ot $, @, i &
[15:30:32] <@ircnewbie> za meta simwolite ste spomenem po kysno
[15:30:34] * Zero-G (~[email protected]) has left #irchelp
[15:31:08] <@ircnewbie> sega shte w dadem spisyk sys wsi4ki meta simwoli
[15:31:12] <@ircnewbie> za da mojem posle da borawim s tqh
[15:31:18] <@ircnewbie> trqbwa da znaete tqhnoto zna4enie ;)
[15:31:23] * omeganet (~[email protected]) has left #irchelp
[15:31:24] * BX3men^ (~[email protected]) has joined #IRChelp
[15:31:46] <@ircnewbie> ^ - shte sywpadne s na4aloto na stringa ili ako e zadadena /m opciqta ste sywpadne s na4aloto na liniqta
[15:32:04] <@ircnewbie> tq e edna ot dwete ograni4eniq za 6ablon drugiqt e $.
[15:32:20] <@ircnewbie> za to4kata we4e spomenahme taka 4e shte dadem malko primeri za da wi stane po qsno
[15:32:26] <@ircnewbie> <paste>
[15:32:56] <@ircnewbie> "" =~ /^$/; # sywpada
[15:32:58] <@ircnewbie> "\n" =~ /^$/; # sywpada, "\n" se ignorira
[15:32:58] <@ircnewbie> "" =~ /./; # ne sywpada; nujdae se ot simwol
[15:32:58] <@ircnewbie> "" =~ /^.$/; # ne sywpada; nujdae se ot simwol
[15:32:58] <@ircnewbie> "\n" =~ /^.$/; # ne sywpada; nujdae se ot simwol razli4en ot "\n"
[15:32:58] <@ircnewbie> "a" =~ /^.$/; # sywpada
[15:33:01] <@ircnewbie> "a\n" =~ /^.$/; # sywpada, ignorira "\n"
[15:33:04] <@ircnewbie> </paste>
[15:33:25] <@ircnewbie> $ - shte sywpadne s kraq na stringa ili ako e zadadena /m opciqta sywpada s kraq na liniqta
[15:33:42] <@ircnewbie> | - pozwolqwa wi da opredelite dwa slu4aq na sywpadenie
[15:34:02] <@ircnewbie> naprimer: m/a|b/ ozna4awa 4e $_ trqbwa da sydyrja a ili b simwol za da ima sywpadenie
[15:34:28] <@ircnewbie> * - opredelq 4e nestoto to4no w lqwo trqbwa da powtoreno wednyj ili powe4e za da ima nqkykwo sywpadenie
[15:34:46] <@ircnewbie> ? - operedelq 4e nestoto to4no w lqwo trqbwa da byde powtoreno 0 ili 1 pyt
[15:35:04] * BX3men^ (~[email protected]) has left #IRChelp
[15:35:16] <@ircnewbie> kogato se izpolzwa zaedno s +, _, ? ili (n, m) meta simwoli i skobi ste sywpadnat s kolkoto se moje po malko danni
[15:35:20] * BadAngel (~[email protected]) Quit (Read error: 54 (Connection reset by peer))
[15:35:28] * SaRDiTkO ([email protected]) has left #irchelp
[15:35:46] <@ircnewbie> () - skobite wi pozwolqwat sywpadenieto w tezi skobi da byde zapazeno w pametta za po kysno izpolzwane
[15:36:04] <@ircnewbie> nik666: posle shte goworim za lubimata ti promenliwa $1 koqto iskash da bydesh i se polu4awa ot tiq skobi ;)
[15:36:06] * IgNoReR`offline is now known as IgNoReR
[15:36:20] <+nik666> obicham grupirane ;-)
[15:36:30] <@ircnewbie> shwetsko ?
[15:36:34] <+Blady> :)
[15:36:42] <+nik666> ne ve, regexp ;P
[15:36:42] <@ircnewbie> Blady: shta grupiram {}
[15:36:42] <@ircnewbie> ;b
[15:36:47] <+Blady> lol
[15:36:48] <@ircnewbie> a uto4nqwaj se ;)
[15:36:58] <+nik666> a btw, za specialnite simvoli, spomena li za Q opciata che malko ne biah naokolo ...
[15:37:08] <@ircnewbie> nik shte q spomenem ei sega
[15:37:22] <@ircnewbie> da e po red wsi4ko da ne se obyrkwat decata ;)
[15:37:44] <@ircnewbie> (?...) ako ? e to4no sled lqwata skoba towa ozna4awa 4e nestoto w skobite nqma da byde zapazeno w pametta
[15:37:50] <@ircnewbie> izpolzwa se samo za GRUPIRANE ;b
[15:37:58] <@ircnewbie> neka nablegnem .. grupirane ;b
[15:38:10] <+nik666> ;-)
[15:38:17] <@ircnewbie> {n, m} - kydrawite skobi opredelqt kolko pyti nestoto to4no w lqwo trqbwa da sywpadne
[15:38:18] <@ircnewbie> [D`AGOSTINO(~[email protected])] prostaci
[15:38:20] <@ircnewbie> ;)
[15:38:38] <@ircnewbie> {n} ozna4awa 4e trqbwa da sywpadne to4no n pyti
[15:38:55] <@ircnewbie> {n,} izna4awa 4e trqbwa da sywpadne naj-malko n pyti
[15:39:10] <@ircnewbie> {n, m} ozna4awa 4e trqbwa da sywpadne naj-malko n pyt no ne powe4e ot m pyti
[15:39:37] <@ircnewbie> [] - kwadratnite skobi wi pozwolqwat da opredelqte klas ot simwoli
[15:40:00] <@ircnewbie> m/[abc]/ ste byde wqrno ako edin ot simwolite a b ili c se sydyrja w $_
[15:40:12] <@ircnewbie> kwadratnite skobi sa po lesno 4etimi ot kolkoto meta simwolite
[15:40:13] * ^TheMask^[N\A] (~[email protected]) has joined #irchelp
[15:40:14] <@ircnewbie> te sa tqhna alternatiwa
[15:40:40] <@ircnewbie> tuka shte po4nem da goworim za tiq \Q \d ... te se nari4at meta posledowatelnosti
[15:40:54] <@ircnewbie> \ - prosto izbqgwa sledwastiqt simwol kakto we4e sigurno razbrahte
[15:40:59] * Michael ([email protected]) has joined #irchelp
[15:41:08] <@ircnewbie> izpolzwajte \\ za da wkliu4ite naklonena 4erta wyw wa6iqt 6ablon
[15:41:17] <@ircnewbie> \$ shte spre interpolaciqta
[15:41:28] <@ircnewbie> \0nnn - wsqko osmi4no 4islo
[15:41:35] <@ircnewbie> \a - alarma ;)
[15:41:46] * Kolumbieza^^^ ([email protected]) has joined #irchelp
[15:41:54] <@ircnewbie> \A - reprezentira na4aloto na string (zna4enieto mu ne se promenq ot /m opciqta)
[15:42:02] * CS sets mode: +v Kolumbieza^^^
[15:42:04] <+Kolumbieza^^^> kak se killva nick\
[15:42:06] * CS sets mode: +v Kolumbieza^^^
[15:42:08] <+Kolumbieza^^^> ?
[15:42:15] * D`AGOSTINO (~[email protected]) has left #irchelp
[15:42:16] * ircnewbie sets mode: -o+b Kolumbieza^^^ *!*[email protected].*
[15:42:17] * Kolumbieza^^^ was kicked by ircnewbie (we4e prekali)
[15:42:22] <@ircnewbie> morron
[15:42:42] <@ircnewbie> \b - wkliu4wa backspace simwola w klasa ot simwoli
[15:43:02] <@ircnewbie> no tuk zna4enieto mu e na4alo ili kraj na duma (sluji kato razgrani4itel na dumi)
[15:43:22] <@ircnewbie> towa mqsto se nari4a mqstoto m/u dumata (\w) i ne dumata (\W)
[15:43:34] <@ircnewbie> sorry za smeshnite izrazi no prosto nqma kak da se kaje po drug na4in na bylgarski
[15:43:50] <@ircnewbie> \B - to4no obratnoto na gornoto
[15:44:13] <@ircnewbie> \cn - wseki kontrolen simwol primerno \cC - Ctrl+C, \cZ - Ctrl+Z, \c[ - ESC ....
[15:44:20] * TapuKaTa|woRk ([email protected]) Quit (irc.telecoms.bg irc.vega.bg)
[15:44:22] <@ircnewbie> \d - sywpada s 4islo
[15:44:36] <@ircnewbie> \D - sywpada s wsi4ko koeto ne e 4islo
[15:44:44] * Blady [~[email protected]] has left IRC
[15:44:44] * Blady is now known as bld\fas
[15:44:52] <@ircnewbie> obshto wzeto ako e s golqma bukwa e obratnoto na malkata bukwa
[15:45:02] <@ircnewbie> \e - izbqgwane
[15:45:16] * aFk` ([email protected]) has joined #irchelp
[15:45:20] <@ircnewbie> \E - spira \L ili \U
[15:45:28] * Eminem{P} ([email protected]) has joined #IRChelp
[15:45:35] * Ivtcho is on IRC
[15:45:41] * abruski-lekciq is now known as abruski
[15:45:42] <@ircnewbie> \f - syglasuwa se sys simwola za nowa stranica
[15:45:52] * DreamWave ([email protected]) Quit (Excess Flood)
[15:45:57] * Dreamwave`ayeu ([email protected]) has joined #irchelp
[15:45:58] <@ircnewbie> \G - sywpada samo tam kydeto predi6niqt m//g e sprql
[15:46:12] <@ircnewbie> \l - smenq sledwastiqt simwol na malyk
[15:46:20] <@ircnewbie> \L - obratnoto
[15:46:28] * Deni_cska ([email protected]) has joined #irchelp
[15:46:28] * CS sets mode: +b DeNi_csKa*!*@*
[15:46:28] * Deni_cska was kicked by CS (inviter (by Blady))
[15:46:34] * RACER_14 (~[email protected]) Quit
[15:46:34] <@ircnewbie> t.e smenq sledwastite simwoli na malki dokato ne srestne\E
[15:46:38] * Ivtcho has left IRC
[15:46:44] <@ircnewbie> \n - nowa liniq
[15:46:49] * bld\fas is now known as Blady
[15:46:49] * Blady [~[email protected]] is on IRC
[15:47:00] <@ircnewbie> \Q - izbqgwa meta simwolite i gi wyzpriema s tqhnoto bukwalno zna4enie dokato ne se srestne \E
[15:47:01] * CS sets mode: +v abruski
[15:47:06] <@ircnewbie> towa e mnogo wajno
[15:47:15] * AngelHell is now known as Gorthaur
[15:47:16] <@ircnewbie> \r - syglasuwa se sys simwola return
[15:47:20] * WinHack32 ([email protected]) Quit (DROGATA{P}{P}: ai mnoo zdrave na vsichki i veseli rpanici m/y krakata)
[15:47:25] * Gorthaur is now known as Sith
[15:47:28] <@ircnewbie> \s - s prazno mqsto
[15:47:31] * Dreamwave`ayeu ([email protected]) Quit (blagodarenie na sichki vas izhabih poslednite 3 godini ot jivota si i niama da napravia tazi greshka otnovo)
[15:47:34] * Beliata is now known as Beliata|0u7
[15:47:40] <@ircnewbie> \S - obratnoto
[15:47:58] * Sith is now known as ANGELHELL
[15:48:00] <@ircnewbie> \t - tabulaciq
[15:48:14] <@ircnewbie> \u - smenq sledwastiqt simwol na glawna bukwa
[15:48:22] * CS sets mode: -v abruski
[15:48:36] <@ircnewbie> \U - smenq sledwastite simwoli na golemi dokato ne se srestne \E
[15:48:50] * TapuKaTa|woRk ([email protected]) has joined #irchelp
[15:48:54] <@ircnewbie> \v - sywpada s wertikalen tab
[15:49:11] <@ircnewbie> \w - sywpada s wseki simwol ot duma (bukweno-cifrowite simwoli plius _)
[15:49:17] <@ircnewbie> \W - obratnoto
[15:49:29] <@ircnewbie> \xnn simwol zadaden w 6esnajseti4en kod
[15:49:53] <@ircnewbie> \X - syglasuwa se s niz predstawlqwast (kombinirana simwolna posledowatelnost) Unicode
[15:49:54] * asfdas ([email protected]) has joined #irchelp
[15:50:07] <@ircnewbie> \Z - istina w kraq na niz ili predi nezadyljitelen now red
[15:50:18] * asfdas ([email protected]) has left #irchelp
[15:50:19] <@ircnewbie> \z - istina samo w kraq na niz
[15:50:27] <@ircnewbie> \$ - dolar4e (money money)
[15:50:43] <@ircnewbie> \@ - kliomba, maimunsko a .. etc wse bozi ;)
[15:51:01] <@ircnewbie> \0 - syglasuwa se s nulewiqt simwol (ASCII NULL)
[15:51:07] <@ircnewbie> towa nikoga nqma da wi potrqbwa sigurno :)
[15:51:40] * ANGELHELL is now known as AngelHell
[15:51:46] <+Blady> :)
[15:51:51] <@ircnewbie> \N{NAME} - syglasuwa se s imenuwan simwol (\N{Greek:Sigma})
[15:51:51] <@ircnewbie> towa iziskwa nali4ieto na pragma use charnames;
[15:51:51] <@ircnewbie> kojto e zainteresowan da 4ete perldoc charnames
[15:52:03] <@ircnewbie> Blady: wypros4eta ima li ?
[15:52:25] <+Blady> ne
[15:52:26] * Dragonflame ([email protected]) Quit (iaideeee)
[15:52:32] <+nik666> shte ima li neshto za syglasuvane s unicode ?
[15:52:38] <@ircnewbie> towa e ... s meta simwolnite posledowatelnosti
[15:52:39] <+nik666> che malko mi e tymno tam ...
[15:53:04] <@ircnewbie> nik kakwo po to4no iskash da znaesh ?
[15:53:28] <@ircnewbie> ima razni pre definirani ot unicode sykrashteniq IsBlaBla
[15:53:39] <@ircnewbie> ili oniq zybotrosha4ki deto sa po 20 simwola ;)
[15:53:53] <@ircnewbie> nqma smi da obremenqwame lekciqta s tqh :)
[15:54:03] * cRouSs (~[email protected]) has joined #irchelp
[15:54:04] <+nik666> IsNeshtoSi gore dolu iasno ;-)
[15:54:21] <@ircnewbie> mdam
[15:54:23] <@ircnewbie> ina4e \x{263a} wide hex char (Unicode SMILEY)
[15:54:33] <@ircnewbie> taka se syglasuwat s unicode simwolite
[15:54:56] * cRouSs (~[email protected]) has left #irchelp
[15:54:57] <@ircnewbie> ina4e man unicode ako iskash da widish tam za unicode te sa dosta
[15:55:10] * Valeri[0ut] (~[email protected]) has joined #irchelp
[15:55:10] * Valeri[0ut] (~[email protected]) Quit (Killed (OS (Glined: Kradec! Niamash miasto v tazi mreja. (2003/04/17 Aaron@OS))))
[15:55:21] <+nik666> ahmz, a neshto syglasuvame s kirilica, ili primerno s ivrit ?
[15:55:52] <@ircnewbie> ivrit ? umf
[15:56:00] <@ircnewbie> s kirilica use locale kakto kazahme
[15:56:35] <@ircnewbie> ina4e sled malko shte spomenem za edni pre definirani pak takiwa
[15:56:39] <@ircnewbie> samo4e ne sa ot unicode
[15:56:40] * Geek|nfo (~[email protected]) has joined #irchelp
[15:56:42] <+nik666> ahmz
[15:56:53] <@ircnewbie> te sa si normalnite ... IsPunct za punktoacionnite znaci
[15:57:15] <@ircnewbie> unicode sabira wsi4ki simwoli koito mojesh da si pomislish ot wsi4ki ezici
[15:57:21] <@ircnewbie> oshte ne e nawlqzal kato cqlo w perl
[15:57:26] <@ircnewbie> oshte go implementwat
[15:57:47] <@ircnewbie> no mojesh da prawish sywpadeniq s kwito iskash simwoli s \x{}
[15:57:56] * joao ([email protected]) has joined #irchelp
[15:57:59] <@ircnewbie> daje moje da printwash takiwa simwoli stiga mashinata ti da poddyrja unicode
[15:58:05] <@ircnewbie> pak po syshtiqt na4in se printwa s \x{}
[15:58:07] * aFk` ([email protected]) has left #irchelp
[15:58:09] * Executor_ is now known as Exe[away]
[15:58:21] <@ircnewbie> moga li da prodyja ?
[15:58:30] <+nik666> a principno, ako se slojat kirilski simvoli v edin shablon
[15:58:39] <+nik666> shte raboti li ?
[15:59:25] * Chaoskiller ([email protected]) has joined #irchelp
[15:59:33] <@ircnewbie> ste
[15:59:34] * Cnupo ([email protected]) has joined #irchelp
[15:59:45] <@ircnewbie> no az predwaritelno sym prawil na pc-to si edni setfontowe
[15:59:47] <@ircnewbie> zawisi ot pc-to
[15:59:57] <@ircnewbie> no po princip stawa, stiga da izpolzwash locale
[16:00:03] <+nik666> iasno
[16:00:03] <@ircnewbie> locale daje ti promenq daje i \w
[16:00:09] <+nik666> I'm done
[16:00:21] <@ircnewbie> no za da matchnesh bylgarsko a mojesh da si izpolzwash i kirilskoto a w shablona
[16:00:45] <@ircnewbie> okay :) ta da se wyrnem na meta simwolite \ posledowatelnostite
[16:00:57] <@ircnewbie> trqbwa da kajem oshte nqkolko dumi za \Q i \G tuj kato sa wajni
[16:01:08] <@ircnewbie> a pyk \G e dosta neqsen
[16:01:20] <@ircnewbie> pyrwoto dopylnenie e pos()
[16:01:35] <@ircnewbie> tq wrysta kyde e zawyr6ilo poslednoto m//g tyrsene za promenliwa
[16:01:36] * Cnupo ([email protected]) has left #irchelp
[16:01:50] <@ircnewbie> ($_ se izpolzwa ako ne se zadade nikakwa promenliwa)
[16:01:55] <@ircnewbie> systoto e kato \G
[16:02:23] <@ircnewbie> sledwastata funkciq e quotemeta() tq wrysta stojnosta na regulqrniqt izraz w kojto wsi4ki ne bukweno-cifrowi sa izbegnati
[16:02:59] <@ircnewbie> (towa sa wsi4ki koito ne sywpadat s /[A-Za-z_0-9]/ na tqh ste im byde slojena \ spored tekustiqt locale)
[16:03:18] <@ircnewbie> systoto e kato \Q ako ne se zadade argument kym tazi funkciq se izpolzwa $_
[16:03:36] <@ircnewbie> poredicata ot simwoli ste sywpadne s identi4na poredica w stringa za tyrsene
[16:03:49] <@ircnewbie> simwolite trqbwa da bydat w sy6iqt red i w 6ablona
[16:03:50] * UnknoW ([email protected]) has joined #irchelp
[16:04:03] <@ircnewbie> i w stringa za tyrsene za da ima nqkakwo sywpadenie
[16:04:17] <@ircnewbie> naprimer m/abc/; ste sywpadne s abc
[16:04:23] * HEPOH is on IRC
[16:04:27] <@ircnewbie> no ne i scab ili bca
[16:04:39] <@ircnewbie> *s cab
[16:04:52] * Geek|nfo is now known as gemoh4o
[16:05:21] <@ircnewbie> meta simwola za reduwane (|) ste wi pozwoli da imate poredica ot 6abloni w edin 6ablon
[16:05:30] <@ircnewbie> naprimer, m/dog|cat/;
[16:05:37] <@ircnewbie> ste sywpadne ili s dog ili s cat
[16:05:45] <@ircnewbie> mnogo 4esto sreshtan primer ;)
[16:06:10] <@ircnewbie> nqkoj programisti obi4at da zatwarqt w kawi4ki reduwaneto na 6abloni
[16:06:12] * E-M-I-N is now known as gfswfghfdg
[16:06:19] <@ircnewbie> za da se znae kyde zapo4wa i kyde swyr6wa poredicata
[16:06:38] * gemoh4o (~[email protected]) Quit (kill by minix [4estita o liniq])
[16:06:53] <@ircnewbie> ops skobi ;)
[16:06:54] <@ircnewbie> m/(dog|cat)/; eto da stane qsno
[16:07:13] <@ircnewbie> kakto i da e towa ste se zapazi w pametta i ste q zaeme do kraq na programata
[16:07:33] <@ircnewbie> koeto e problem no ne winagi e hubawo da izpolzwate | meta simwola
[16:07:47] <@ircnewbie> po efektiwno e da izpolzwate logi4eskite operatori na Perl /dog/ || /cat/;
[16:08:05] <@ircnewbie> kwadratnite skobi se izpolzwat za syzdawaneto na klas ot simwoli
[16:08:16] * TPE3BEHuK ([email protected]) Quit (She Loves Me Not...Loves Me Not..)
[16:08:26] <@ircnewbie> klasyt ot simwoli se izpolzwa za sywpadenie na opredelen tip simwol
[16:08:27] * BoBy-LoVe ([email protected]) Quit (JusT QuIT . . . . . . . .)
[16:08:43] <@ircnewbie> naprimer, mojete da naprawite sywpadenie s 4islo 4rez m/[0123456789]/;
[16:08:55] <@ircnewbie> towa ste sywpadne s edini4en simwol w perioda ot 0 do 9
[16:09:13] <@ircnewbie> eto sega nik shte wkarame malko i za pre definiranite
[16:09:37] <@ircnewbie> definirani ot standartniqt POSIX(Portable Operatoration System Interace - interfejs za prenosima operacionna sistema)
[16:09:43] <+nik666> yep
[16:09:51] <@ircnewbie> shte spomenem samo nqkoj koito sa po izpolzwani ;)
[16:10:11] <@ircnewbie> <paste>
[16:10:12] <@ircnewbie> [[:alpha:]] [a-zA-Z] bukwen znak
[16:10:12] <@ircnewbie> [[:alnum:]] [0-9A-Za-z] bukwen znak ili cifra
[16:10:12] <@ircnewbie> [[:digit:]] \d cifra, 0-9
[16:10:12] <@ircnewbie> [[:lower:]] [a-z] malka bukwa
[16:10:13] <@ircnewbie> [[:upper:]] [A-Z] golqma bukwa
[16:10:19] <@ircnewbie> [[:punct:]] [!"#$%&()'*+,-./:;<=>?@\[\\\]^_`{|}~]
[16:10:25] <@ircnewbie> </paste>
[16:10:29] <@ircnewbie> nice regexp ;)
[16:10:39] <@ircnewbie> poslednoto sluji za znak za ponktuaciq
[16:10:55] <@ircnewbie> obyrnete wnimanie na znakowete s promenena interpolaciq - [ ] \
[16:11:11] <@ircnewbie> Blady: nqkykwi wyprosi do tuk ?
[16:11:12] * JoroMan is now known as ddggehfsif
[16:11:15] <+Blady> ne
[16:11:29] <@ircnewbie> aide e .. promociq ot sq do posle free ;b
[16:11:31] * ddggehfsif is now known as JoroMan
[16:11:35] * JoroMan is now known as S-p-3-n-S
[16:11:37] <+Blady> ;bb
[16:11:41] * Screamer is on IRC
[16:11:43] <@ircnewbie> ima nqkolko klasowe ot simwoli koito se izpolzwat 4esto
[16:11:51] <@ircnewbie> i sa napraweni kato meta simwoli
[16:11:53] * Chaoskiller ([email protected]) has left #irchelp
[16:11:53] * djdinodi ([email protected]) Quit (Broken pipe)
[16:12:21] <@ircnewbie> to4kata, \d, \D, \s, \S, \w, i \W
[16:12:47] <@ircnewbie> kolibkata (^) i $ sa meta simwoli koito opredelqt na4aloto i kraqt na reda w stringa za tyrsene
[16:12:56] <@ircnewbie> kolibkata e winagi w na4aloto na 6ablona
[16:13:02] <@ircnewbie> naprimer: m/^one/;
[16:13:06] * abruski is now known as abruski-qde
[16:13:11] <@ircnewbie> ste sywpadne s wseki string kojto zapo4wa s one
[16:13:35] <@ircnewbie> dolyryt e winagi w kraq na 6ablona - m/(last|end)$/;
[16:13:49] * vIpEr4o_ ([email protected]) has joined #irchelp
[16:13:55] <@ircnewbie> ste sywpadne s wseki string kojto zawyr6wa s end ili last
[16:14:15] * UnknoW ([email protected]) Quit (14,1 T 15 H 14 U 15 G 14 S 15 C 14 ® 15 I 14 P 15 T 14 v215.5 14Вземете го от 15wWw.gAnGsTeRi.hIt.bG)
[16:14:17] <@ircnewbie> \A i \Z meta poredicite systo se izpolzwat kato ograni4iteli na na4aloto i kraq na string
[16:14:29] <@ircnewbie> twyrdenieto \A se syglasuwa samo w na4aloto na niza
[16:14:35] * S-p-3-n-S ([email protected]) Quit (Da go Duhate Vsichiiii ei !!!!Da go Duhate Vsichiiii ei !!!!Da go Duhate Vsichiiii ei !!!!Da go Duhate Vsichiiii ei !!!!)
[16:14:39] <@ircnewbie> nezawisimo ot towa kakyw e toj
[16:14:51] * vIpEr4o_ ([email protected]) has left #irchelp
[16:15:09] <@ircnewbie> oba4e tradicionnoto twyrdenie za na4alo na red, kakto i za na4alo na niz e ^
[16:15:14] * IVO__15 ([email protected]) has joined #irchelp
[16:15:36] * IVO__15 ([email protected]) Quit
[16:15:39] <@ircnewbie> sledowatelno ako 6ablonyt izpolzwa modifikatora /m i nizyt sydyrja simwol za now red
[16:15:48] * Lord_Nykon ([email protected]) has joined #irchelp
[16:15:53] <@ircnewbie> ^ ste se syglasuwa nawsqkyde w niza neposredstweno sled simwol za now red
[16:16:14] <@ircnewbie> malko primeri shte wi doidat dobre zashtoto towa trqbwa da se razbere dobre
[16:16:14] <@ircnewbie> <paste>
[16:16:19] <@ircnewbie> $total++ while /^./mg; - broene na nepraznite redowe za \Z i za $/ se otnasq systoto.
[16:16:27] <@ircnewbie> /\Abar/ - syglasuwa se s bar i barstool
[16:16:29] <@ircnewbie> /^bar/ - syglasuwa se s bar i barstool
[16:16:33] <@ircnewbie> /bar^/m - syglasuwa se s bar i barstool i "sand\nbar"
[16:16:37] <@ircnewbie> stupid bx
[16:16:43] <@ircnewbie> </paste>
[16:17:18] <@ircnewbie> ima li nqkakwi wyrpsi do tuk ?
[16:17:22] <@ircnewbie> Bladimire ?
[16:17:26] <+Blady> tcyk
[16:17:56] <@ircnewbie> ima nqkolko meta simwoli koito ima zada4ata da opredelqt kolko pyti daden simwol da sywpadne
[16:19:01] * TihOmiR is on IRC
[16:19:05] <@ircnewbie> m/a{5}/; ozna4awa 4e 5 simwola trqbwa da bydat namereni za da se wyrne istina
[16:19:07] * FriendlyGhost (~[email protected]) has joined #IRCHelp
[16:19:20] * swity ([email protected]) Quit (Leaving)
[16:19:21] <@ircnewbie> *, + i ? meta simwolite i {} wsi4ki te sa kwantori
[16:19:45] <@ircnewbie> skobite se izpolzwat za da se zapazi stojnosta koqto e imala sywpadenie w bufer za po kysno izpolzwane
[16:19:55] <@ircnewbie> nik sega shte si centyr na dejstwieto ;)
[16:20:07] <+nik666> me0w
[16:20:17] <@ircnewbie> mislim za towa kato forma za zapazwane na nujnata informaciq w pametta ;)
[16:20:29] <@ircnewbie> nqkoj programisti go nari4at obratni referencii
[16:21:04] <@ircnewbie> kogato naprawite m/(fish|fowl)/; za da namerite sywpadenie w stojnosta $1 ste se zapazi ili fish ili fowl spored towa koe e sywpadnalo
[16:21:39] <@ircnewbie> \b meta simwola ste sywpadne s mqstoto m/u praznoto mqsto
[16:21:55] <@ircnewbie> i pyrwiqt simwol na duma ili m/u posledniqt simwol na duma i prazno mqsto
[16:22:15] <@ircnewbie> m/\bfoo/; ste sywpadne s foo daje i da nqma prazni mesta okolo dumata
[16:22:41] <@ircnewbie> systo ste sywpadne s $foo tyj kato dolara ne se smqta kato simwol za duma
[16:22:53] <@ircnewbie> izraza m/foo\b/; ste sywpadne s foo no ne i s foobar
[16:23:15] <@ircnewbie> a izraza m/\bwiz/; ste sywpadne s wizard no ne i s geewiz
[16:23:25] <@ircnewbie> \B ste sywpadne s wsi4ko no ne i s ograni4enie na duma
[16:23:45] <@ircnewbie> qko e naprimer m/\bduma\b/; shte sywpadne daje is "duma"
[16:23:53] <@ircnewbie> !duma! etc...
[16:24:27] <@ircnewbie> wseki edin ot gornite komponenti moje da byde kombiniran s wseki za da se polu4i prost ili slojen 6ablon
[16:24:52] <@ircnewbie> silata na 6ablonite e 4e ne winagi znaete predwaritelno stojnosta
[16:24:52] <@ircnewbie> na stringa w kojto tyrsite
[16:25:15] <@ircnewbie> ako iskate da naprawite sywpadenie s pyrwata duma w string kojto e pro4eten ot fajl
[16:25:21] <@ircnewbie> moje bi nqma da imate predstawa kolko e dylyg toj
[16:25:31] <@ircnewbie> zatowa trqbwa da syzdadete 6ablon
[16:25:45] <@ircnewbie> mojete da zapo4nete s \w simwoli4niqt klas ot simwoli
[16:26:01] <@ircnewbie> kojto ste sywpadne s edin bukweno-cifrow ili _ simwol
[16:26:27] <@ircnewbie> taka 4e da priemem 4e stringa se namira w $_ mojete da namerite sywpadenie na edin simwol ot duma taka m/\w/;
[16:26:31] <@ircnewbie> |> Iron Maiden - Man on the edge.mp3
[16:26:48] <@ircnewbie> ako iskate da imate sywpadenie s edin simwol ili dwa m/\w|\w\w/;
[16:27:07] <@ircnewbie> mojete da prodyljawate da si dobawqte \w no ima i po dobyr na4in
[16:27:10] * abruski-qde is now known as abruski
[16:27:11] * AngelHell ([email protected]) Quit (Read error: 113 (No route to host))
[16:27:19] <@ircnewbie> + kwantora ni idwa tuk na pomosht ;)
[16:27:27] <@ircnewbie> breh kato animaciono film4e stana ;)
[16:27:35] <@ircnewbie> m/\w+/;
[16:27:57] <@ircnewbie> ako stojnosta na $_ be6e AAA BBB togawa m/\w+/; ste sywpadne s AAA w stringa
[16:28:02] * XAkEp4eTO ([email protected]) has joined #irchelp
[16:28:07] * MILSEM (~[email protected]) Quit (Read error: 104 (Connection reset by peer))
[16:28:18] * Fuck^_^Master ([email protected]) has joined #irchelp
[16:28:39] <@ircnewbie> ako $_ be6e prazen (pylen s prazni mesta ili pylen s simwoli koito ne sa simwoli ot duma) ste se wyrne nedifinirana stojnost
[16:29:01] <@ircnewbie> gorniqt 6ablon ste wyrne samo lyja ili istina
[16:29:07] <@ircnewbie> da kaje dali ima sywpadenie ili ne
[16:29:27] <@ircnewbie> ako iskate da razberete koq e to4no dumata: m/(\w+)/;
[16:29:33] <@ircnewbie> togawa dumata shte byde zapazena w nik666
[16:29:37] <@ircnewbie> ops .. t.e $1
[16:29:51] <+nik666> exactly ;p
[16:29:55] <@ircnewbie> eto sega idwa i naj interesnoto :)
[16:30:05] <@ircnewbie> kak mojete da izpolzwate skobite kato slojite nqkolko skobi w skobite
[16:30:15] <@ircnewbie> naprawili sme 1 ascii koeto shte wi go obqsni mnogo dobre
[16:30:35] <@ircnewbie> /((\w+)(\w+))/
[16:30:36] <@ircnewbie> || |
[16:30:36] <@ircnewbie> || |
[16:30:36] <@ircnewbie> |$2 $3
[16:30:36] <@ircnewbie> |
[16:30:36] <@ircnewbie> $1
[16:30:37] <@ircnewbie> a perf.
[16:30:39] <@ircnewbie> :)
[16:30:55] <@ircnewbie> na wsi4ki im stana qsno nali ?
[16:31:03] <@ircnewbie> Blady: nqkakwi wyprosi ?
[16:31:17] * E-M-I-N ([email protected]) has joined #irchelp
[16:31:20] * RaideR_FlayeR (~[email protected]) has joined #irchelp
[16:31:20] * IgNoReR is now known as IgNoReR`offline
[16:31:29] <@ircnewbie> grupiraniqta mogat da se wlagat i kogato towa stane te se nomerirat po mqsto na lqwata skoba
[16:31:32] <+Blady> :)
[16:31:38] * E-M-I-N ([email protected]) has left #irchelp
[16:32:17] <@ircnewbie> sega shte kajem malko za klasowete ot simwoli i tolkowa za dneska utre pak :)
[16:32:29] * MiKroMaSTeR`0ff ([email protected]) has left #irchelp
[16:32:35] * NOnikafNICK (~[email protected]) has joined #IRChelp
[16:32:36] <@ircnewbie> klasyt ot simwoli definira tip simwol
[16:32:53] <@ircnewbie> klasyt ot simwoli [0123456789] definira klas ot deseti4ni 4isla
[16:33:09] <@ircnewbie> a [0-9a-f] klas ot 6esnajseti4ni 4isla
[16:33:29] <@ircnewbie> zabelejete 4e mojete da izpolzwate - ako iskate da zadadete period ot simwoli
[16:33:31] * aiRCnuHk0 (~[email protected]) has joined #irchelp
[16:33:45] <@ircnewbie> klasowete ot simwoli wi pozwolqwat da naprawite sywpadenie sys wsqkakyw period ot simwoli
[16:33:51] * Lord_Nykon ([email protected]) has left #irchelp
[16:33:59] * Mr^Big (~[email protected]) has joined #irchelp
[16:34:12] <@ircnewbie> ne e nujno da znaete predwaritelno koj simwol ste sywpadne
[16:34:30] <@ircnewbie> towa wi pozwolqwa da prawite sywpadenie s neopredeleni simwoli
[16:34:54] * RaideR_FlayeR is now known as RaideR`Hapva
[16:34:57] <@ircnewbie> mojete da izpolzwate interpolaciqta na promenliwai w klas ot simwoli no trqbwa da bydete wnimatelni kogato go prawite
[16:34:57] * NOnikafNICK is now known as [-killer-]
[16:35:09] * [-killer-] (~[email protected]) Quit (Killed (NS (Ghost: [email protected])))
[16:35:27] * [-killer-] (~[email protected]) has joined #IRChelp
[16:35:29] * [-killer-] is now known as akjlsak
[16:35:35] <@ircnewbie> $_ = "AAABBBccC"; $charList = "ADE"; print "matched" if m/[$charList]/;
[16:35:41] <@ircnewbie> shte pokaje matched
[16:35:43] * akjlsak is now known as NoNicName__
[16:35:53] <@ircnewbie> towa e taka zastoto interpoliraniqt rezultat w klasa ot simwoli e [ADE]
[16:36:01] <@ircnewbie> adeeeeeee ;b bidjanam
[16:36:30] <@ircnewbie> ako izpolzwate period ot simwoli obedete se 4e perioda e waliden i ne smeswate 4isla s bukwi
[16:36:41] <@ircnewbie> ne mojete da naprawite period ot sorta [9-0] !!!!
[16:37:00] <@ircnewbie> ne mojete da naprawite zadno broene systoto e i s bukwite
[16:37:09] <@ircnewbie> izpolzwajte logikata si (nadqwame se 4e q imate)
[16:37:29] <@ircnewbie> $_ = "AAABBBccC"; $charList = "ADE"; print "matched" if m/[$charList-9]/;
[16:37:37] <@ircnewbie> shte wi wyrne /[ADE-9]/: invalid [] range in regexp at test.pl line 4.
[16:37:43] <@ircnewbie> demek greshka
[16:38:19] <@ircnewbie> ponqkoga e hubawo kogato mojete da naprawite sywpadenie sys wsi4ki simwoli oswen s nqkakyw spisyk ot drugi simwoli
[16:38:44] <@ircnewbie> towa stawa kogato w kwadratnite skobi slojite kato pyrwi simwol kolibka (^)
[16:39:05] <@ircnewbie> Perl ima sykrasteniq za nqkoj klasowe koito se izpolzwat po 4esto
[16:39:29] <@ircnewbie> \w - [a-zA-Z0-9_] kato utf8 \p{IsWord}
[16:39:43] <@ircnewbie> \W - [^a-zA-Z0-9_] kato utf8 \P{IsWord}
[16:39:57] <@ircnewbie> \s - [\t\r\f\n ] kato utf8 \p{IsSpace}
[16:40:13] <@ircnewbie> \S - [^\t\n\r\f ] kato utf8 \P{IsSpace}
[16:40:23] * Mr^Big (~[email protected]) Quit (UniBG script 9.0 www.mvpsoft.cjb.net)
[16:40:23] * ReX` (~[email protected]) Quit (0,4CSKA RULEZ)
[16:40:27] <@ircnewbie> \d - [0-9] kato utf8 \p{IsDigit}
[16:40:41] <@ircnewbie> \D - [^0-9] kato utf8 \P{IsDigit}
[16:40:45] * NoNicName__ is now known as Komareca
[16:40:57] <@ircnewbie> ot POSIX i Unicode ima mnogo definirani sykrasteniq za utf8 nqma smisyl da wi goworim za tqh
[16:41:05] <@ircnewbie> polzwajte si man stranicite ;)
[16:41:43] * RaideR`Hapva (~[email protected]) Quit (Ping timeout: 180 seconds)
[16:42:00] <@ircnewbie> mojete da izpolzwate tezi simwoli w drugi klasowe ot simwoli no ne i kato krajni ili na4alni to4ki na period
[16:42:17] <@ircnewbie> $_ = "\tAAA"; print "matched" if m/[\d\s]/;
[16:42:23] <@ircnewbie> shte pokaje matched
[16:42:25] * Komareca (~[email protected]) has left #IRChelp
[16:42:27] <@ircnewbie> zashtoto stojnosta na $_ wkliu4wa simwola tabulaciq
[16:42:38] * Michael ([email protected]) Quit (.......Dovijdane!!)
[16:42:59] <@ircnewbie> meta simwolite koito se namirat w kwadratnite skobi koito definirat klasa ot simwoli se izpolzwat w tqhnoto bukwalno zna4e
[16:43:11] <@ircnewbie> towa moje da byde malko obyrkwasto w na4aloto
[16:43:23] <@ircnewbie> wsystnost daje i nie obyrkwam ponqkoga
[16:43:27] * Zero-G (~[email protected]) has joined #irchelp
[16:43:51] * Eminem{P} ([email protected]) Quit (-eXtreme- If God had intended Man to program, we would be born with serial I/O ports.)
[16:43:58] <@ircnewbie> mislim 4e powe4eto ot obyrkwaniqta swyrzani s regulqrnite izrazi lejat na fakta 4e wseki simwol nqkolko wyzmojni zna4eniq
[16:44:04] * Exe[away] is now known as Executor_
[16:44:25] * Zero-G (~[email protected]) has left #irchelp
[16:44:26] <@ircnewbie> ako iskate da namerite sywpadenie na duma 4iqto golemina e neizwestna
[16:44:35] <@ircnewbie> trqbwa da go naprawite s + kwantora
[16:44:37] <@ircnewbie> |> Iron Maiden - The number of the beast.mp3
[16:44:39] <@ircnewbie> nik greets
[16:45:09] <@ircnewbie> ne mojete da izpolzwate * tyj kato tq moje da sywpadne i s 0
[16:45:15] <@ircnewbie> zatowa we4e dadohme primer (+)
[16:45:18] 12[4SNooPY-Doo12] is doing a /whois on you!
[16:45:33] <@ircnewbie> wnimawajte kogato izpolzwate *
[16:45:41] <@ircnewbie> zastoto tq moje da sywpadne s prazen string
[16:45:47] <@ircnewbie> koeto weroqtno ne iskate
[16:46:07] <@ircnewbie> izraza /b*/ ste sywpadne s wseki string daje i da nqma b w sebe si
[16:46:23] <@ircnewbie> hubawo e ako neznaete dali ima prazno mqsto predi dadeno nesto da izpolzwate \s*
[16:46:33] <@ircnewbie> koeto ste sywpadne s wsi4ki prazni mesta
[16:46:41] <@ircnewbie> ili s nito edno prazno mqsto (ako nqma prazni mesta)
[16:46:47] <@ircnewbie> e towa e za dneska :)

W dopylnenie:

[17:16:00] <@ircnewbie> Blady a towa za ` dos/unix komandata e slednoto:
[17:17:07] <Arlatha> kakvo e bnc
[17:17:18] <Nudy> kade si bre
[17:17:28] <@ircnewbie> 'root' =~ s/root/`pwd`/e;
[17:17:37] <@ircnewbie> koeto ste promeni root na pwd
[17:17:50] <Blady> qsno
[17:17:55] <Blady> :)
[17:17:59] <@ircnewbie> sega kato se zamislim towa e celiq zamisyl ;)
[17:18:30] <@ircnewbie> a ako se izpolzwa kato ograni4itel ` si e prosto normalen ograni4itel t.e. s`foo`bar` ste zameni foo s bar
[17:19:04] <Blady> da da qsno






Log ot prowelata se na 02.05.2003 w #IRCHelp na tema 'Regulqrnite izrazi w Perl Part II'

[14:12:43] <@ircnewbie> takam .. zapo4wa wtorata 4ast ot lekciqta na tema perl regular expressions
[14:12:48] * CrackerJack ([email protected]) has joined #irchelp
[14:12:57] * joni-b (~[email protected]) has joined #irchelp
[14:13:01] * ircnewbie sets mode: -v lAmEmAsTeRfLaSh
[14:13:08] <@ircnewbie> kojto ima wypros da go zadawa na RegExp-Quest
[14:13:12] * RaideR_FlayeR ([email protected]) has left #irchelp
[14:13:13] * JoroMan is now known as Ludoto]Ku4e
[14:13:15] <@ircnewbie> ne si wzemajte +v za da ne napysnete prejdewremenno
[14:13:34] * Kolumbieza^^^ ([email protected]) has joined #irchelp
[14:13:39] <@ircnewbie> w4era goworihme za kwantori, operatori swyrzani s reguliurniq izraz
[14:13:41] * abruski-sad is now known as abruski
[14:13:43] * duck ([email protected]) has left #IrcHelp
[14:13:55] * Ludoto]Ku4e is now known as JoroMan
[14:13:55] <@ircnewbie> meta-simwolite meta-poredicite opciite kym operatorite i meta skobite
[14:13:56] * PItan4o ([email protected]) Quit (Dead socket)
[14:14:07] * CYPER (~[email protected]) has joined #IRCHELP
[14:14:13] <@ircnewbie> sega shte prodyljim da goworim za syzdawaneto na shabloni
[14:14:14] * joni-b (~[email protected]) has left #irchelp
[14:14:29] <@ircnewbie> i razli4nite widowe kwantori specialni promenliwi pri regulqrnite izrazi
[14:14:54] <@ircnewbie> primeri za /x opciqta split i taka natatyk
[14:15:10] * Pri6uleCa ([email protected]) Quit (Ping timeout: 180 seconds)
[14:15:16] <@ircnewbie> ponqkoga moje da iskate da naprawite sywpadenie s to4no opredelen broj pyti na daden komponent
[14:15:19] * pk--_ ([email protected]) has joined #irchelp
[14:15:22] * pk-- ([email protected]) Quit (Read error: 104 (Connection reset by peer))
[14:15:37] <@ircnewbie> sledniqt izraz ste wyrne istina samo ako 5 bukwi ot duma se namirat w $_
[14:15:41] * pk--_ is now known as pk-
[14:15:53] <@ircnewbie> $_ = "AA AB AC AD AE"; m/(\w+\s+){5}/;
[14:16:14] <@ircnewbie> w tozi primer se opitwame da namerim sywpadenie s edna bukwa
[14:16:39] <@ircnewbie> ili powe4e posledwani ot edna ili powe4e prazni mesta
[14:16:59] * abruski ([email protected]) Quit
[14:17:00] <@ircnewbie> {5} kwantora se izpolzwa za da se uwerite 4e kombinaciqta trqbwa da byde powtorena 5 pyti
[14:17:08] <@ircnewbie> * i + kwantorite sa lakomi
[14:17:17] * abruski ([email protected]) has joined #irchelp
[14:17:27] <@ircnewbie> ma6inata za regulqrni izrazi zapo4wa wednaga kogato moje wzima kolkoto se moje powe4e
[14:17:43] <@ircnewbie> sled towa se opitwa da zawyr6i kolkoto se moje po rano
[14:17:49] <@ircnewbie> wzimajki pyrwoto nali4no re6enie
[14:18:07] <@ircnewbie> mojete da naprawite ne lakomi komponenti kato sled kwantora slojite ?
[14:18:19] * SheWasMyHeroine is now known as nik666
[14:18:33] <@ircnewbie> izpolzwajte sledniqt string w kojto se namira pytq do fajl za da obqsnim po to4no * i +
[14:18:35] * ircnewbie sets mode: +v nik666
[14:18:49] <@ircnewbie> $_ = '/user/Jackie/temp/pr0n.dat';
[14:18:59] <@ircnewbie> regulqrniqt izraz .* ste sywpadne s celiqt pyt do fajla
[14:19:03] <@ircnewbie> helo nik :)
[14:19:19] <+nik666> sorry I'm late
[14:19:34] <+Blady> nik :)
[14:19:39] <@ircnewbie> towa moje da byde widqno 4rez slednata programa $_ = '/user/Jackie/temp/pr0n.dat'; m/.*/; print $&;
[14:19:47] <@ircnewbie> koeto shte pokaje /user/Jackie/temp/pr0n.dat
[14:19:53] <@ircnewbie> nik belejka imash li za zakysnenieto ?
[14:20:03] <+nik666> semeini prichini :P
[14:20:13] * JoroMan ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:14] * vIpEr[CS] ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:14] * ivo__ [[email protected]] has left IRC
[14:20:14] * DITRIX (~[email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:14] * snyper-|\uncBa ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:14] * DIAVLO`SaD ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:15] * WoLf_BoY ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:15] * CrackerJack ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:15] * Crow4o ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:20:15] * Kolumbieza^^^ ([email protected]) has left #irchelp
[14:20:15] <@ircnewbie> mojete da widite 4e * e lakom - sywpada s celiqt string
[14:20:17] <@ircnewbie> ;)
[14:20:33] * Crow4o ([email protected]) has joined #irchelp
[14:20:45] * eXpenSly`zaet ([email protected]) has left #irchelp
[14:20:54] * JoroMan ([email protected]) has joined #irchelp
[14:20:54] * vIpEr[CS] ([email protected]) has joined #irchelp
[14:20:54] * DIAVLO`SaD ([email protected]) has joined #irchelp
[14:20:54] * WoLf_BoY ([email protected]) has joined #irchelp
[14:20:54] * snyper-|\uncBa ([email protected]) has joined #irchelp
[14:21:00] * JoroMan ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:21:00] * vIpEr[CS] ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:21:00] * snyper-|\uncBa ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:21:00] * DIAVLO`SaD ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:21:00] * WoLf_BoY ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[14:21:22] * JoroMan ([email protected]) has joined #irchelp
[14:21:22] * vIpEr[CS] ([email protected]) has joined #irchelp
[14:21:22] * DIAVLO`SaD ([email protected]) has joined #irchelp
[14:21:22] * WoLf_BoY ([email protected]) has joined #irchelp
[14:21:22] * snyper-|\uncBa ([email protected]) has joined #irchelp
[14:21:22] * Crow4o is now known as Crow4o```
[14:21:38] * ivo__ is on IRC
[14:21:38] * CS sets mode: +v B-l-o-o-d-y
[14:21:49] * CS sets mode: -v B-l-o-o-d-y
[14:21:50] * IgNoReR`offline ([email protected]) Quit (changing servers)
[14:22:37] * WoLf_BoY ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[14:22:37] * JoroMan ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[14:23:13] * IgNoReR`offline ([email protected]) has joined #irchelp
[14:23:14] * eircnewbi (~[email protected]) has joined #irchelp
[14:23:19] * UnknoW is now known as Unkn
[14:23:26] * ircnewbie (~[email protected]) Quit (Killed (NS (Ghost: eircnewbi!~[email protected])))
[14:23:36] * eircnewbi is now known as ircnewbie
[14:23:40] * CS sets mode: +o ircnewbie
[14:23:50] <@ircnewbie> paste poslednoto koeto se napisa ?
[14:23:51] * Crow4o``` is now known as Crow4o
[14:23:55] <+nik666> 02:20PM <ircnewbie> mojete da widite 4e * e lakom - sywpada s celiqt string
[14:24:07] <@ircnewbie> <ircnewbie> ako dobawite ? shte go naprawite ne lakom
[14:24:07] <@ircnewbie> <ircnewbie> t.e shte pokaje /
[14:24:07] * Unkn is now known as Int3r
[14:24:26] <@ircnewbie> sywpadenieto na proizwolen broj simwoli e qko
[14:24:45] * Int3r ([email protected]) has left #irchelp
[14:24:46] <@ircnewbie> no bez wyzmojnosta da razberete koi sa te 6ablonyt nqma da byde mnogo polezen
[14:24:58] * BMW-525ix is now known as BMW-smotanqk
[14:25:02] <@ircnewbie> Perl wi pozwolqwa da obgradite izraza w skobi
[14:25:14] <@ircnewbie> za da go zapazite towa koeto e sywpadnalo w pametta
[14:25:32] <@ircnewbie> moje systo da 4uete 4e 6ablona w pametta so4i kato bufer na 6ablona
[14:25:36] * SNoOKER ([email protected]) has left #irchelp
[14:25:42] <@ircnewbie> towa se zapazwa w pametta za po kysno izpolzwane
[14:25:56] <@ircnewbie> pokazahme wi w4era ako si spomnqte prost primer na towa
[14:26:10] <@ircnewbie> tozi primer gleda6e za pyrwata duma w string
[14:26:20] <@ircnewbie> i q zapazwa6e kato pyrwiqt bufer $1
[14:26:25] * GoGu_CsKa^^ ([email protected]) has joined #irchelp
[14:26:38] <@ircnewbie> $_ = "AAA BBB ccC"; m/(\w+)/; print("$1\n");
[14:26:40] * vfork ([email protected]) Quit (Read error: 60 (Operation timed out))
[14:26:42] <@ircnewbie> shte pokaje AAA
[14:26:50] * BMW-smotanqk (~[email protected]) Quit (Varnenski Moshennici "Wuw Klyba",Xaskowski Dilari "Wuw Klyba",Stolichni Mytri "Wuw Klyba",Plovdivski Igrachi "Wuw Klyba")
[14:26:58] <@ircnewbie> mojete da izpolzwate kolkoto si iskate tolkowa buferi
[14:27:11] <@ircnewbie> wseki pyt kogato dobawite skobi edin bufer se izpolzwa
[14:27:13] * fork ([email protected]) has joined #irchelp
[14:27:15] * Black^PoweR ([email protected]) has joined #irchelp
[14:27:28] <@ircnewbie> ako iskate da namerite wsi4ki dumi w stringa trqbwa da izpolzwate /g opciqta
[14:27:30] * ircnewbie sets mode: +v fork
[14:27:55] <@ircnewbie> za da gi namerite izpolzwajte cikyl kojto cikli dokato operatora wyrne lyja
[14:28:14] <@ircnewbie> $_ = "AAA BBB ccC"; while (m/(\w+)/g) { print("$1\n"); }
[14:28:34] <@ircnewbie> programata wryshta
[14:28:36] <@ircnewbie> AAA
[14:28:37] <@ircnewbie> BBB
[14:28:38] <@ircnewbie> ccC
[14:28:51] <+nik666> vypros
[14:28:56] <@ircnewbie> da
[14:29:17] <+nik666> ima li niakakyv optimalen nachin da se cikliat obratnite referencii ? $1 $2 $1 ... $1024
[14:29:24] * RegExp-Quest (~[email protected]) Quit (Read error: 60 (Operation timed out))
[14:29:44] <@ircnewbie> po-optimalen ot tozi ?
[14:29:48] <@ircnewbie> w @array da se slojat
[14:30:04] * JoroMan\AwaY\ ([email protected]) has joined #irchelp
[14:30:26] <@ircnewbie> za towa koeto ste goworim sega
[14:30:31] <+nik666> imam predvid, imam edin ogromen shablon v koito se grupirat okolo 10-25 broiki, do $24 primerno
[14:30:33] * desync ([email protected]) Quit (Read error: 9 + 0 = -0 (Connection reset by third grade math))
[14:30:50] * JoroMan\AwaY\ is now known as JoroMan
[14:31:11] * JoroMan ([email protected]) Quit (Killed (irc.spnet.net (irc.naturella.com <- irc.naturella.com)))
[14:31:12] <@ircnewbie> w kakyw smisyl da gi ciklish ;)
[14:32:03] * Disconnected
[14:32:07] * Rejoined channel #irchelp
[14:32:07] * Topic is 'W momenta te4e lekciq na tema Perl Regular Expressions. Za wyprosi /msg RegExp-Quest <wypros>'
[14:32:07] * irc.psychoid.net sets mode: +v bld\brb
[14:32:07] * bld\brb is now known as Blady
[14:32:08] * fork is now known as vfork
[14:32:10] <@ircnewbie> i pone ste znaesh kolko ()() skobi si slojil
[14:32:12] <@ircnewbie> $#array
[14:32:18] * ^SenseR^ ([email protected]) has joined #irchelp
[14:32:32] <@ircnewbie> dokato samoto ciklene na $1 $2 moje da stawa edinstweno 4rez foreach (1..10) {}
[14:32:35] * ^SuDnIkA^ ([email protected]) has left #irchelp
[14:33:03] <@ircnewbie> i posle da se prawi nesto ot sorta na ${$_} (cute ;))
[14:33:08] * LOVE_TANQ is now known as LOVE_TANQ{P}
[14:33:14] * abruski is now known as abruski-dush
[14:33:34] <@ircnewbie> da prodaljawame li s primer za masivnoto priswoqwane?
[14:33:40] <+nik666> ahm, men takava mi beshe pyrvonachalnata ide a ;-)
[14:33:55] * JoroMan is now known as JoroMan\EggDrop
[14:34:10] <@ircnewbie> moje bi ste iskate da naprawite masiw ot wsi4ki sywpadeniq
[14:34:28] <@ircnewbie> $_ = "AAA BBB ccC"; @matches = m/(\w+)/g; print("@matches\n");
[14:34:47] <@ircnewbie> towa shte wi izleze syshtoto kato gornoto samo 4e bez newlines
[14:34:48] * dj220 ([email protected]) Quit (zzzzzzzzz)
[14:34:48] <@ircnewbie> t.e kato $_
[14:34:50] <@ircnewbie> takyw shte byde rezyltata
[14:34:56] <@ircnewbie> eto oshte nqkolko primera
[14:34:57] * naf^naf (~[email protected]) has joined #irchelp
[14:35:02] <@ircnewbie> <paste>
[14:35:09] * famzah[dead] (~[email protected]) has joined #irchelp
[14:35:28] <@ircnewbie> $x = 'the cat in the hat';
[14:35:30] <@ircnewbie> $x =~ /^(.*)(at)(.*)$/; # sywpada,
[14:35:31] <@ircnewbie> # $1 = 'the cat in the h'
[14:35:31] <@ircnewbie> # $2 = 'at'
[14:35:31] <@ircnewbie> # $3 = '' (0 sywpadeniq)
[14:35:34] <@ircnewbie> </paste>
[14:35:36] * ircnewbie sets mode: +v famzah[dead]
[14:36:07] <@ircnewbie> eto i primer za prewryshtane procetni w deseti4ni 4isla
[14:36:13] * naf^naf (~[email protected]) has left #irchelp
[14:36:16] <@ircnewbie> $x = "A 39% hit rate"; $x =~ s!(\d+)%!$1/100!e;
[14:36:24] <@ircnewbie> $x sydyrja "A 0.39 hit rate"
[14:36:36] <@ircnewbie> Perl ima systo nqkoj specialni promenliwi
[14:36:46] <@ircnewbie> koito wi pomagat koe e sywpadnalo i koe ne
[14:36:57] * Krass^ ([email protected]) has left #irchelp
[14:37:06] <@ircnewbie> tezi promenliwi ponqkoga ste wi spestqt slaganeto na skobi za namirane na informaciqta
[14:37:30] <@ircnewbie> $+ - kym tazi promenliwa se dobawq stojnosta s koqto poslednata skoba za sywpadenie e sywpadnala
[14:37:55] <@ircnewbie> $& - dobawq se stojnosta na celiqt string kojto e sywpadnal
[14:37:55] * edi ([email protected]) has joined #irchelp
[14:37:55] * CS sets mode: +o edi
[14:38:09] <@ircnewbie> ako sywpadenieto ne e spolu4ilo togawa $& sydyrja poslednata stojnost ot poslednoto sywpadenie
[14:38:16] * @ircnewbie *waves* edi
[14:38:31] * BenStar ([email protected]) has joined #irchelp
[14:38:32] <@ircnewbie> $` - kym tazi promenliwa se dobawq wsi4ko predi stringa kojto e sywpadnal
[14:38:41] <+famzah[dead]> dobavq?
[14:39:04] <@ircnewbie> famzah[dead]: promenliwata shte sydyrja wsi4ko predi stringa kojto e sywpadnal
[14:39:11] * Let`s`Go (~[email protected]) has joined #irchelp
[14:39:14] <@ircnewbie> posle shte dadem primer za towa i se nadqwame 4e shte se izqsni po dobre
[14:39:41] <@ircnewbie> $' - kym tazi promenliwa se dobawq wsi4ko sled stringa kojto e sywpadnal
[14:39:51] * abruski-dush is now known as abruski
[14:40:08] <@ircnewbie> w dopylnenie na towa koeto e sywpadnalo Perl 5.6.0 dawa poziciite na towa koeto e sywpadnalo 4rez masiwite @- i @+
[14:40:13] * SNoOKER ([email protected]) has joined #irchelp
[14:40:20] <@ircnewbie> nik tuka shte stawa za tiq cikleniq koito ti iskash da naprawish
[14:40:30] <+nik666> yep
[14:40:32] <@ircnewbie> eto edin daje po tehni4en na4in ot tozi kojto kazahme predi towa
[14:40:48] <@ircnewbie> $-[0] e poziciqta na na4aloto na cqloto sywpadenie
[14:40:57] * JoroMan\EggDrop ([email protected]) has left #irchelp
[14:40:58] <@ircnewbie> a $+[0] e poziciqta na kraq na sywpadenieto
[14:41:06] * B-l-o-o-d-y ([email protected]) has left #irchelp
[14:41:08] * B-l-o-o-d-y ([email protected]) has joined #irchelp
[14:41:16] * edi ([email protected]) Quit (Client Quit)
[14:41:22] <@ircnewbie> podobno na towa $-[n] e poziciqta na na4aloto na $n-toto sywpadenie
[14:41:34] <@ircnewbie> a $+[n] e kraq na towa sywpadenie
[14:41:53] <@ircnewbie> ako $n e ne definirano ne definirani sa i $-[n] i $+[n]
[14:42:07] * snyper-|\uncBa is now known as snyper
[14:42:10] <@ircnewbie> eto primer
[14:42:12] <@ircnewbie> <paste>
[14:42:21] * RegExp-Quest (~[email protected]) has joined #irchelp
[14:42:31] <@ircnewbie> $x = "Mmm...donut, thought Homer";
[14:42:31] <@ircnewbie> $x =~ /^(Mmm|Yech)\.\.\.(donut|peas)/; # matches
[14:42:31] <@ircnewbie> foreach $expr (1..$#-) {
[14:42:31] <@ircnewbie> print "Match $expr: '${$expr}' at position ($-[$expr],$+[$expr])\n";
[14:42:31] <@ircnewbie> }
[14:42:36] <@ircnewbie> </paste>
[14:42:44] <@ircnewbie> towa shte pokaje slednoto
[14:42:52] * ircnewbie sets mode: +v RegExp-Quest
[14:43:06] <@ircnewbie> Match 1: 'Mmm' at position (0,3)
[14:43:07] <@ircnewbie> Match 2: 'donut' at position (6,11)
[14:43:07] <@ircnewbie> $` is the same as substr( $x, 0, $-[0] )
[14:43:07] <@ircnewbie> $& is the same as substr( $x, $-[0], $+[0]-$-[0] )
[14:43:07] <@ircnewbie> $' is the same as substr( $x, $+[0] )
[14:43:12] * WaR-MasteR ([email protected]) has joined #irchelp
[14:43:47] <@ircnewbie> znaete li 4e izpolzwaneto na $&, $`, ili $' zabawq programata wi?
[14:44:05] * MiKroMaSTeR ([email protected]) has left #irchelp
[14:44:10] <@ircnewbie> wednyj stom Perl widi 4e se nujdaete ot tezi promenliwi nqkyde w programata
[14:44:28] <@ircnewbie> toj gi dawa da se izpolzwat pri wseki sledwast regulqren izraz
[14:44:47] <@ircnewbie> systiqt mehanizam se izpolzwa za $1, $2 i t.n..
[14:44:48] * CS sets mode: +v snyper
[14:44:58] <@ircnewbie> ako nikoga ne izpolzwate $& i t.n.. w wa6iqt skript
[14:45:04] * ircnewbie sets mode: -v snyper
[14:45:17] * Kolumbieza^^^ ([email protected]) has joined #irchelp
[14:45:21] * Kolumbieza^^^ ([email protected]) has left #irchelp
[14:45:26] <@ircnewbie> togawa regulqrniqt izraz nqma da byde zapazen w pametta
[14:45:44] <@ircnewbie> taka 4e propuskajte izpolzwaneto na $&, $`, i $'
[14:45:51] * WaR-MasteR ([email protected]) Quit
[14:46:12] <@ircnewbie> no ako ne mojete wednyj stom ste gi izpolzwali izpolzwajte gi kolkoto si iskate
[14:46:24] <@ircnewbie> zastoto we4e ste platili cenata ;)
[14:46:33] <+famzah[dead]> :)
[14:46:40] * CS_MaHuaK (~[email protected]) has joined #irchelp
[14:46:44] * RaideR_FlayeR (~[email protected]) has joined #irchelp
[14:46:47] <@ircnewbie> zapomnete 4e nqkoj algoritmi gi ocenqwat dosta dobre
[14:47:06] <@ircnewbie> ot Perl 5.0 nagore promenliwata $& ne e tolkowa skyp na4in kolkoto ostanalite dwe
[14:47:10] * i-aM-g0n3-2 ([email protected]) has joined #irchelp
[14:47:13] <@ircnewbie> skyp ot strana na izpolzwane na resursi
[14:47:21] * i-aM-g0n3 ([email protected]) Quit (Read error: 104 (Connection reset by peer))
[14:47:24] * Cm_MaHuaK (~[email protected]) Quit (Read error: 104 (Connection reset by peer))
[14:47:25] <@ircnewbie> a ne 4e plashtate za nego w natura ;)
[14:47:28] * i-aM-g0n3-2 is now known as i-aM-g0n3
[14:47:40] * CS_MaHuaK is now known as Cm_MaHuaK
[14:47:46] <+nik666> v tozi red na misli, kolko skypo e da se polzvat tezi promenlivi ?
[14:47:50] * XuTaP-XaKeP is now known as XuTaP[away]XaKe
[14:47:59] <+nik666> v smisal, kolko resurs zaemat
[14:48:02] * XuTaP[away]XaKe is now known as XuTaP[out]XaKeP
[14:48:17] <@ircnewbie> nik kolkoto edin $string
[14:48:24] <@ircnewbie> daje towa sa referencii
[14:48:32] <@ircnewbie> t.e ne sa tolkowa mnogo kolkoto si mislish
[14:48:34] * XuTaP[out]XaKeP is now known as XuTaP[away]XaKe
[14:48:44] <@ircnewbie> no wse pak prekomernoto izpolzwane na promenliwite shte dowede do natowarwane
[14:48:45] <+nik666> imenno zatova se chudia zashto vse se govori che sa skypi
[14:48:55] <@ircnewbie> pri segashnite mashini natowarwaneto ne e tolkowa mnogo ;)
[14:49:02] * XuTaP[away]XaKe is now known as XuTaP-XaKeP
[14:49:04] <@ircnewbie> zashtoto nqkoj hora gonqt byrzinata
[14:49:08] <@ircnewbie> a w perl ponqkoga tq lipswa
[14:49:24] <@ircnewbie> primerno famzah[dead] moje da kaje kolko po byrz e C++ 4istiqt algoritym za tyrsene na fajlowe ot perl
[14:49:29] <@ircnewbie> :)))
[14:49:40] <+nik666> iasno ;-)
[14:49:44] <@ircnewbie> wse pak ako goworim za drebni zada4i perl e mnogo efikasno sredstwo za wyrshene na rabota
[14:50:00] <@ircnewbie> no za golemi bazi danni i golqma masa ot informaciq perl ne e tolkowa byrz
[14:50:05] * SeX_MasteR^^ ([email protected]) has joined #irchelp
[14:50:12] <@ircnewbie> razbira se kogato go izpolzwasha prawilno si wyrshish mnogo dobre rabotata :)
[14:50:22] * RaideR_FlayeR (~[email protected]) Quit (Broken pipe -ne ne !) - Ping timeout: 999999 seconds - Towa!:))))
[14:50:29] <@ircnewbie> prosto trqbwa malko optimizaciq ;) wse pak e interpretatora ne e tolkowa losh kolkoto si mislqt nqkoj hora
[14:50:34] <@ircnewbie> poneje toj optimizira koda do dosta golqma stepen
[14:50:48] <@ircnewbie> i stawa wypros 4e tezi promenliwi nikoga nqma da se zapishat ot interpretatora ako ne se izpolzwat
[14:50:58] <@ircnewbie> zatowa samoto kompilirane na koda stawa 4rez pyrwona4alno gledane na samiqt kod
[14:51:04] <@ircnewbie> i taka se wijda dali promenliwite se izpolzwat ili ne
[14:51:10] <@ircnewbie> ako ne se izpolzwat prosto nqma da zaemat pamet
[14:51:21] <@ircnewbie> no ina4e wednyj izpolzwani winagi se prikrepqt kym izraza
[14:51:22] <@ircnewbie> i towa e ;)
[14:51:31] <@ircnewbie> nqkoj hora biha predpo4eli da izpusnat tiq promenliwi
[14:51:33] * TapuKaTa|Cnu is now known as TapuKaTa
[14:51:43] <@ircnewbie> no script kiddies kato nas ;))
[14:51:54] <@ircnewbie> ta .. prodyljawame ;) kraj na liri4eskoto otklonenie
[14:52:10] <@ircnewbie> komponentite w 6ablona imat preuritet systo kakto operatorite
[14:52:38] * B-l-o-o-d-y ([email protected]) Quit (Ping timeout: 180 seconds)
[14:52:46] * RedHat (~[email protected]) has joined #irchelp
[14:52:46] <@ircnewbie> ako widite sledniqt izraz m/a|b+/ trudno e da se razli4i dali 6ablona trqbwa da byde m/(a|b)+/
[14:53:08] <@ircnewbie> sywpadni ili s a powtorena edin ili nqkolko pyti ili s b powtoren edin ili nqkolko pyti
[14:53:10] * CoOl_BoY_ is now known as CoOl_BoY_[away]
[14:53:15] * ^SenseR^ ([email protected]) Quit
[14:53:26] * SeX_MasteR^^ ([email protected]) has left #irchelp
[14:53:29] <@ircnewbie> ili m/a|(b+)/ - sywpadni s a ili b powtoren edin ili nqkolko pyti
[14:53:46] <@ircnewbie> sega shte wnesem qstnost malko w prioriteta
[14:54:00] <@ircnewbie> naj golqm prioritet imat skobite
[14:54:25] <@ircnewbie> sled towa kwantorite posle poredici i ograni4awaniq na reda i naj nakraq reduwaneto (|)
[14:54:44] <@ircnewbie> mojete da izpolzwate skobite za da promenite prioriteta na ocenqwane
[14:55:00] <@ircnewbie> zastoto te imat naj-golemiqt prioritet
[14:55:25] * B-l-o-o-d-y ([email protected]) has joined #irchelp
[14:55:38] <@ircnewbie> kakto i da e dokato ne izpolzwate raz6ireniqt sintaksis ste zasegnete 6ablonite w pametta (ste se izpolzwat)
[14:55:38] <@ircnewbie> |> nightwish - Ever Dream.mp3
[14:55:38] <@ircnewbie> greets :)
[14:55:49] * Blady is now known as Kushev
[14:55:58] * Kushev is now known as Blady
[14:56:02] <@ircnewbie> raz6irenite regulqrni izrazi sa na4in za izrazqwane na silata na 6ablonite
[14:56:20] <@ircnewbie> bez dobawqneto na mnogo meta simwoli kym we4e systestwuwastata prolifekaciq
[14:56:24] * ThEShADoW ([email protected]) has joined #irchelp
[14:56:32] <@ircnewbie> 4rez izpolzwaneto na osnowniqt (?...)
[14:56:48] <@ircnewbie> wyzmojnosta na regulqrnite izrazi se uweli4awa mnogokratno
[14:56:52] * HaCkErRa ([email protected]) has joined #irchelp
[14:57:11] <@ircnewbie> dosega perl razpoznawa nqkolko razshireniq
[14:57:30] <@ircnewbie> (?# tekst) - pozwolqwa wi da dobawite komentari kym wa6iqt regulqren izraz
[14:57:40] * LOVE_TANQ{P} is now known as GoGu_Cska
[14:57:41] <@ircnewbie> teksta se ignorira
[14:57:53] * CYPER (~[email protected]) Quit (Bye all)
[14:58:21] <@ircnewbie> (?:...) - pozwolqwa wi da dobawqte skobi kym wa6ite regulerni izrazi bez te da bydat zapazeni w pametta
[14:58:34] <@ircnewbie> (?=...) - prawite sywpadenie na stojnosti bez da gi wkliu4wate w $&
[14:58:44] * TapuKaTa ([email protected]) Quit (Ping timeout: 180 seconds)
[14:58:49] <@ircnewbie> towa e winagi sled nesto t.e pogled napred
[14:58:54] * ThEShADoW ([email protected]) has left #irchelp
[14:59:12] <@ircnewbie> (?!...) - opredelite kakwo ne trqbwa da sledwa izraza
[14:59:42] <@ircnewbie> naprimer, /blue(?!bird)/ ozna4awa 4e bluebox i bluesy ste sywpadnat no ne i bluebird
[15:00:37] <@ircnewbie> (?<=...) - prawite sywpadenie na stojnosti bez da gi wkliu4wate w $& (towa e winagi predi nesto)
[15:00:51] * Termostator ([email protected]) has joined #irchelp
[15:00:51] <@ircnewbie> pogled nazad
[15:01:00] * HaCkErRa ([email protected]) has left #irchelp
[15:01:08] * GoGu_Cska is now known as GOGU_CSKA^^
[15:01:08] <@ircnewbie> (?<!...) - opredelite kakwo ne trqbwa da e predi izraza
[15:01:18] <@ircnewbie> *opredelqte
[15:01:50] <@ircnewbie> naprimer, /(?<!fish )cake/ ozna4awa 4e fish cake nqma da sywpadne no cream cake ste
[15:02:07] * gonzo09 ([email protected]) has joined #irchelp
[15:02:20] <@ircnewbie> (?sxim-sxim) - pozwolqwa wi da opredelite wgradena opciq samo za izraza a ne da q dobawqte sled operatora
[15:02:40] <@ircnewbie> towa e polezno kogato dobawqte 6abloni w stojnosti
[15:03:01] <@ircnewbie> i sled towa izpolzwate interpolaciqta za da naprawite sywpadenie
[15:03:24] * gonzo09 ([email protected]) has left #irchelp
[15:03:56] * Termostator ([email protected]) has left #irchelp
[15:03:56] <@ircnewbie> ako w kraq na opciite slojite ':' towa ste sa skobi samo za grupirane i nqma da se zapazi w pametta
[15:03:57] * Nap is now known as Napalmcho
[15:03:57] * XuTaP-XaKeP (~[email protected]) Quit (No route to host)
[15:03:57] <@ircnewbie> (?{...}) izpylnqwa wgraden Perl kod
[15:04:14] <@ircnewbie> (??{...}) syglasuwa se s regulqren izraz ot wgraden Perl kod
[15:04:28] <@ircnewbie> (?(...)...|...) syglasuwa se s 6ablon if-then-else
[15:04:32] * SNoOKER ([email protected]) Quit (3ZzZzZzZzZZZzzzzzzzZzZzzZZzZZZZzZZ)
[15:04:53] <@ircnewbie> (?(...)...) s if-then
[15:04:53] * free_element ([email protected]) has joined #irchelp
[15:05:38] <@ircnewbie> poslednite 4 moje skoro da se mahnat ot Perl .. tuj kato ne sa im fenowe .. ne gi obi4at mnogo
[15:05:39] <@ircnewbie> :)
[15:05:42] <@ircnewbie> dosega naj-poleznoto predimstwo na raz6irenite opcii e wyzmojnosta da se dobawqt komentari direktno w 6ablona spored nqkoj hora
[15:06:12] <@ircnewbie> </paste>
[15:06:40] <@ircnewbie> m/
[15:06:41] <@ircnewbie> (?# sywpada sys string kojto ima dwe dumi. $1 ste)
[15:06:41] <@ircnewbie> (?# byde pyrwata duma. $2 wtorata.)
[15:06:41] <@ircnewbie> ^ (?# ograni4itel za na4aloto na stringa)
[15:06:48] <@ircnewbie> \s* (?# propuskame wsi4ki prazni mesta, izpolzwame * zastoto moje da nqma takiwa)
[15:06:52] <@ircnewbie> (\w+) (?# sywpada s pyrwata duma, znaem 4e e pyrwata tuj kato izpolzwame ^)
[15:06:52] <@ircnewbie> (?# slagame dumata w pametta)
[15:06:54] * Termostator ([email protected]) has joined #irchelp
[15:06:56] <@ircnewbie> \W+ (?# sywpadni s pone edin simwol kojto ne e ot duma, moje da ima powe4e ot 1)
[15:07:02] <@ircnewbie> (\w+) (?# sywpadni s druga duma i q sloji w pametta)
[15:07:06] <@ircnewbie> \s* (?# propusni praznite mesta, izpolzwaj * tyj kato moje da nqma takiwa)
[15:07:06] <@ircnewbie> $ (?# sywpada s kraq na stringa, tyj kato i ^ i $ sa zadadeni)
[15:07:06] <@ircnewbie> (?# celiqt string trqbwa da se systoi ot dwe dumi, za da imame wyrnata istina)
[15:07:10] <@ircnewbie> /x;
[15:07:15] <@ircnewbie> </paste>
[15:07:21] <@ircnewbie> wijdate 4e izglejda malko grozno no nqma kak
[15:07:24] * adventor ([email protected]) has joined #IRCHelp
[15:07:52] <@ircnewbie> raz6ireniqta wi pozwolqwat systo i da promenite prioriteta na ocenqwane
[15:07:55] * Mr^Big ([email protected]) has joined #irchelp
[15:08:12] <@ircnewbie> bez da zasegnete 6ablonite w pametta
[15:08:20] <@ircnewbie> m/(?:a|b)+/; <- primer
[15:08:33] <@ircnewbie> shte sywpadne s towa koeto kazahme predishniqt pyt
[15:08:35] * failo (~[email protected]) has joined #irchelp
[15:08:41] <@ircnewbie> samo 4e nqma da se zapazi w $1
[15:08:41] * sweetlove ([email protected]) has joined #irchelp
[15:09:04] * sweetlove ([email protected]) Quit (Dead socket)
[15:09:23] <@ircnewbie> ponqkoga mojete da iskate da wkliu4ite komponent ot 6ablona wyw wa6iqt 6ablon
[15:09:23] * nik666 ([email protected]) Quit (Ping timeout: 840 seconds)
[15:09:23] * ELGOD (~[email protected]) has joined #irchelp
[15:09:23] <@ircnewbie> bez da go wkliu4ite w $& kojto sydyrja sywpadnaliqt string
[15:09:38] <@ircnewbie> tehni4eksiqt termin za towa e nulewo pozitiwno gledane napred twyrdenie :bbb
[15:09:46] <@ircnewbie> sega koj shte go powtori ? ;b
[15:10:00] <@ircnewbie> nik shti mahna ocystwieto ako go powtorish ;)
[15:10:25] <+Blady> lol
[15:10:42] <@ircnewbie> mojete da izpolzwate towa za da se uwerite 4e stringa kojto sledwa komponenta na sywpadenie e weren bez zasqgane na sywpadnalata stojnost
[15:10:58] <+theJackal> neka da ne izglejda kato lekcia po atomna fizika ili fizika na fluidite ;))
[15:11:30] <@ircnewbie> theJackal: ako iskash mojem da wkarame malko lekciq po atomna fizika ;)
[15:11:54] <@ircnewbie> drugite ezici koito se razli4awat ot perl sa prosto atomi koito se dwijat w prostranstwoto
[15:12:05] <@ircnewbie> i sa nqkak si haoti4no razpredeleni i haoti4no se dwijat
[15:12:34] <@ircnewbie> no dokolkoto perl.. toj e edna sywkupnost ot atomi koito sa swyrzani po mejnu si i obrazuwat edna golqma molekula
[15:12:34] <@ircnewbie> koqto za razlika ot tezi haoti4ni atomi si ima edna cel :)
[15:12:37] <@ircnewbie> da prodyljawame li ? ;bbb
[15:12:40] * lAmEmAsTeRfLaSh is now known as fhaskgasgasgas
[15:12:44] <+theJackal> go on
[15:12:47] <+Blady> :))
[15:12:48] * fhaskgasgasgas is now known as lAmEmAsTeRfLaSh
[15:12:57] <@ircnewbie> ta ako imate nqkakwi danni ot wida
[15:13:20] <@ircnewbie> David Veterinarian 56
[15:13:20] <@ircnewbie> Jackie Orthopedist 34
[15:13:20] <@ircnewbie> Karen Veterinarian 28
[15:13:23] * Zajo_ ([email protected]) has joined #irchelp
[15:13:46] <@ircnewbie> i ako iskate da namerite wsi4ki veterinarians i zapazite tqhnata stojnost ot pyrwata kolona
[15:13:59] <@ircnewbie> mojete da izpolzwate pozitiwnoto gledane napred
[15:14:14] <@ircnewbie> towa ste naprawi i dwete nesta nawednyj
[15:14:28] * Eminem{P} ([email protected]) has joined #IRChelp
[15:14:28] * Eminem{P} ([email protected]) Quit (Dead socket)
[15:14:40] <@ircnewbie> while (<>) { push(@array, $&) if m/^\w+(?=\s+Vet)/; } ; print("@array\n");
[15:14:52] <@ircnewbie> programata shte pokaje David Karen
[15:15:07] <@ircnewbie> NE ME PITAJTE ZA WYPROSI SWYRZANI S IRC !!!!!!!!!!!!!
[15:15:31] * Eminem{P} ([email protected]) has joined #IRChelp
[15:16:04] <@ircnewbie> poslednoto raz6irenie koeto 6e obsydim ste e negatiwnoto gledane napred
[15:16:27] * SUTI ([email protected]) has joined #irchelp
[15:16:30] <@ircnewbie> tozi tip komponent se izpolzwa za da se opredelqt stojnostite koito ne trqbwa da sledwat stringa na sywpadenie
[15:16:37] * SUTI ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[15:16:42] <@ircnewbie> naprimer izpolzwajki systite danni kakto w predi6niqt primer
[15:16:45] * Smoky-Boy ([email protected]) has joined #irchelp
[15:16:51] <+theJackal> (v niakoi povisoki ezici sustoto se postiga sus statement kato "SELECT Name FROM doctors WHERE status IS LIKE '%Vet%';" )
[15:16:56] <@ircnewbie> mojete da gledate za wsi4ki koito ne sa veterinarian
[15:17:02] <+theJackal> (bez IS ;)
[15:17:33] <@ircnewbie> theJackal: w nqkoj po wizoki ezici podobni magii koito se prawqt s perl nikoga ne mogat da se dostignat
[15:17:38] <@ircnewbie> makar 4e poddyrjat regulqrni izrazi :")
[15:18:06] <+theJackal> prosto dopulvah ne postaviam silata na perl pod vupros ;))
[15:18:06] * Smoky-Boy ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[15:18:23] <@ircnewbie> theJackal: towa koeto ti kaza shte sywpadne s *Vet*
[15:18:25] * B-l-o-o-d-y ([email protected]) Quit (Ping timeout: 180 seconds)
[15:18:33] * SUTI ([email protected]) has joined #irchelp
[15:18:35] <@ircnewbie> tozi izraz e mnogo po slojen, duma prazni mesta Vet
[15:18:39] * SUTI is now known as splst
[15:18:53] <@ircnewbie> koeto si siguren 4e shte sywpadne s wtoroto ime na 4oweka ;)
[15:19:23] <+theJackal> da iasno mi e lekciata po SQL ste ia vodia drugata sedmica ;))
[15:19:28] * ma4omen ([email protected]) has joined #irchelp
[15:19:36] <@ircnewbie> :) ako imash jelanie nqmash problem :)
[15:20:09] * rEsPoNsE is on IRC
[15:20:24] <@ircnewbie> ta da se wyrnem na nashiqt primer
[15:20:38] <@ircnewbie> trqbwa prosto da zamenite (?=...) s (?!...)
[15:20:48] * famzah[dead] (~[email protected]) Quit (Ping timeout: 240 seconds)
[15:20:50] * B-l-o-o-d-y ([email protected]) has joined #irchelp
[15:20:55] <@ircnewbie> za syjalenie perl shte wyrne Davi Jackie Kare
[15:20:58] <@ircnewbie> koeto ne e towa koeto iskame ;)
[15:21:24] <@ircnewbie> problemyt e 4e Perl gleda posledniqt simwol ot dumata za da widi dali tq sywpada s Vet
[15:21:58] <@ircnewbie> za da go naprawite prawilno trqbwa da kajete na Perl 4e pyrwata duma swyr6wa tam kydeto zapo4wa raz6irenieto
[15:22:22] <@ircnewbie> while (<>) { push(@array, $&) if m/^\w+\b(?!\s+Vet)/; } ; print("@array\n");
[15:22:28] <@ircnewbie> pokazwa Jackie
[15:22:35] <@ircnewbie> towa i o4akwahme ;)
[15:22:48] <@ircnewbie> ima mnogo na4ini za sywpadenie na wsqkakwi stojnosti
[15:22:49] -> *cs* v #irchelp -Blady
[15:22:49] * CS sets mode: -v Blady
[15:22:53] * Blady [~[email protected]] has left IRC
[15:22:53] * Blady is now known as bld
[15:22:57] * bld is now known as bld\bbl
[15:23:02] * B-l-o-o-d-y ([email protected]) has left #irchelp
[15:23:18] <@ircnewbie> ako pyrwiqt metod kojto probwate ne raboti opitajte se da razbiete stojnosta na po malki komponenti
[15:23:20] * failo is now known as failo_
[15:23:21] * B-l-o-o-d-y ([email protected]) has joined #irchelp
[15:23:26] <@ircnewbie> i da naprawite sywpadenie sys wseki edin
[15:23:37] * ma4omen ([email protected]) Quit
[15:23:50] <@ircnewbie> ako wsi4ki te se prowalqt winagi mojete da popitate w nqkoj #Perl kanal :)))))
[15:24:21] <@ircnewbie> za da demonstrirame mnogo razli4ni 6abloni ste se otklonim ot formata na standartnite primeri
[15:24:29] * Silverchair is on IRC
[15:24:35] <@ircnewbie> shte obqsnim situaciqta za sywpadenie
[15:24:50] <@ircnewbie> i wednaga sled towa ste sledwa wyzmojno re6enie
[15:25:17] <@ircnewbie> sled re6enieto ste dobawim malko komentari za da obqsnim kak stawa sywpadenieto
[15:25:27] * Let`s`Go (~[email protected]) has left #irchelp
[15:25:37] <@ircnewbie> wyw wsi4ki primeri stringyt w kojto ste tyrsim ste byde $_
[15:25:53] <@ircnewbie> sega e hubawo wreme da pitate ako ne wi e qsno neshto
[15:26:10] <@ircnewbie> ako imate wypros /msg RegExp-Quest wyprosa
[15:26:25] * failo_ (~[email protected]) Quit (Ping timeout: 180 seconds)
[15:26:32] <@ircnewbie> qwno na wsi4ki im e qsno :)
[15:26:41] <@ircnewbie> ili wsi4ki spqt
[15:26:57] <@ircnewbie> ako iskate da namerite powtarqstite se simwoli w string kato AA w ABC AA ABC
[15:27:04] * |NGSF|Darken ([email protected]) has joined #irchelp
[15:27:13] <@ircnewbie> togawa naprawete slednoto m/(.)\1/;
[15:27:36] <@ircnewbie> tozi 6ablon izpolzwa pametta za 6ablona za da zapazi edini4niq simwol
[15:27:49] * Crow4o ([email protected]) Quit (Read error: 104 (Connection reset by peer))
[15:28:34] <@ircnewbie> sled towa obratnata referenciq (\1) se izpolzwa za da se powtori pyrwiq simwol
[15:28:35] <@ircnewbie> obratnata referenciq se izpolzwa kato referenciq ot pametta za 6ablona
[15:28:35] <@ircnewbie> tej kato e wse oste w 6ablona
[15:28:58] <@ircnewbie> nawsqkyde drugade w programata trqbwa da se izpolzwa $1
[15:29:06] <@ircnewbie> sled tozi izraz $1 ste sydyrja powtarqstiq se simwol
[15:29:24] <@ircnewbie> towa ste sywpadne s dwa simwola razli4ni ot simwolite za now red
[15:29:37] * snyper is now known as snyper-3a_ko3
[15:29:38] <@ircnewbie> nqkoj hora se pristrastqwat da pi6at nesta kato $pattern =~ s/(\W)/\\\1/g;
[15:30:03] <@ircnewbie> towa e praroditelq na RHS za zamqna
[15:30:13] * splst ([email protected]) Quit (UniBG script 8.5 www.mvpsoft.cjb.net)
[15:30:20] <@ircnewbie> za da se izbegne 6okiraneto na pristrastenite kym sed no e lo6 nawik
[15:30:46] <@ircnewbie> towa e zastoto spored Perl dqsnata strana s/// e " " string
[15:31:10] * BASTER ([email protected]) has joined #irchelp
[15:31:14] <@ircnewbie> no \1 e " " string kojto ozna4awa CONTROL-A
[15:31:26] <@ircnewbie> obi4ajno w Unix \1 e zabraneno w s///
[15:31:28] * aCiD_MaX (~[email protected]) has left #irchelp
[15:31:58] <@ircnewbie> kakto i da e ako se pristrastite kym towa ste si nawle4ete nepriqtnosti ako dobawite /e opciqta
[15:32:24] <@ircnewbie> s/(\d+)/ \1 + 1 /eg;
[15:32:26] * _MaVeRlK (~[email protected]) has left #irchelp
[15:32:30] <@ircnewbie> shte wi dade greshka ako izpolzwate -w
[15:33:04] <@ircnewbie> ili ako opitate s/(\d+)/\1000/; mojete da naprawite towa prawilno i da go oprawite na ${1}000
[15:33:40] <@ircnewbie> tazi operaciq na interpolaciq ne trqbwa da byde obyrkana s operaciqta za sywpadenie 4rez obratna referenciq
[15:34:00] <@ircnewbie> wsy4stnost te ozna4awat dwe razli4ni nesta w lqwata strana na s///
[15:34:30] <@ircnewbie> ako iskate da namerite pyrwata duma w string togawa naprawete m/^\s*(\w+)/;
[15:34:44] <@ircnewbie> sled izraza $1 ste sydyrja pyrwata duma w stringa
[15:34:56] * TapuKaTa ([email protected]) has joined #irchelp
[15:35:22] <@ircnewbie> wsqko prazno mqsta w kraq na stringa ste byde propusnato ot \s* meta-simwolnata poredica
[15:35:45] <@ircnewbie> sled towa \w+ meta-simwolnata poredica ste sywpadne sys sledwastata duma
[15:36:27] <@ircnewbie> zabelejete 4e *-koeto ozna4awa 0 ili powe4ese izpolzwa za sywpadenieto na praznite mesta
[15:36:36] <@ircnewbie> zastoto moje da nqma takiwa
[15:36:47] * Arigatou ([email protected]) has joined #irchelp
[15:36:56] <@ircnewbie> +-kojto ozna4awa 1 ili powe4ese izpolzwa za dumata
[15:37:02] <@ircnewbie> nqkakwi wyprosi za towa ?
[15:37:06] * abruski is now known as skyDive
[15:37:12] <@ircnewbie> theJackal obshtuwaj s nas ;)))
[15:37:23] <+theJackal> ircnewbie ami slojno mi e ;) ot perl ne razbiram tolkova
[15:37:35] <@ircnewbie> i az ;)
[15:37:39] <+theJackal> mucha se tuka uj da razbiram ama ste iska povtorno chetene na lekciata ;)) i drugia semestur popravka ;P
[15:37:53] <@ircnewbie> hahahahhahahaha:)
[15:37:58] <@ircnewbie> nali si nash 4owek shte butnem 1 ramo
[15:38:15] <+theJackal> ne vij perl e prekaleno silen i ti na dosta visoko nivo obesniavash i mnogo malko ot tochno shirokia krug posetiteli razbira (prepodlagam)
[15:38:17] <@ircnewbie> ta ako iskate da namerite poslednata duma w string togawa naprawete slednoto
[15:38:23] <+theJackal> no za uchebno chetivo ste bude polezno natatuk
[15:38:33] * Kolumbieza^^^ ([email protected]) has joined #irchelp
[15:38:43] <+theJackal> puk te vuprosite prosto ste budat dobaviani kum loga sus zakusnenie ;)) (vkl. otgovorite)
[15:38:50] * Kolumbieza^^^ ([email protected]) has left #irchelp
[15:38:50] <@ircnewbie> mi napraweno e maksimalno razbiraemo da e ;)
[15:38:54] <@ircnewbie> :) yep
[15:39:22] <@ircnewbie> eto go i primera ;)
[15:39:30] <@ircnewbie> m/
[15:39:32] <@ircnewbie> (\w+) (?# sywpada s duma, i zapazwa stojnosta w pametta)
[15:39:32] <@ircnewbie> [.!?]? (?# nqkoi stringowe, moje da sydyrjat izre4eniq. ako e taka)
[15:39:32] <@ircnewbie> (?# tozi komponent, ste sywpadne s 0 ili edin punktuacionen znak)
[15:39:36] <@ircnewbie> \s* (?# sywpada s praznite mesta w kraq, izpolzwa se *, tej kato moje da nqma)
[15:39:38] <@ircnewbie> $ (?# opredelq kraq nq stringa)
[15:39:38] <@ircnewbie> /x;
[15:39:56] <@ircnewbie> $1 ste sydyrja poslednata duma w stringa
[15:40:17] <@ircnewbie> towa moje da se naprawi mnogo po tehni4no s \b
[15:40:23] <@ircnewbie> tiq klasowe ot stringowe w [ ]
[15:40:30] <@ircnewbie> wse pak trqbwa da izpolzwame towa koeto shte nau4im ;))
[15:40:35] <@ircnewbie> aaaaaaaaaaaaaaaai ?
[15:40:36] <@ircnewbie> ;b
[15:40:55] * hacker__ ([email protected]) has joined #irchelp
[15:41:00] <@ircnewbie> ako znaete 4e ima samo dwe dumi w string mojete da naprawite m/^(\w+)\W+(\w+)$/x;
[15:41:05] * Arigatou ([email protected]) has left #irchelp
[15:41:18] <@ircnewbie> $1 ste sydyrja pyrwata duma a $2 - wtorata
[15:41:34] <@ircnewbie> imajki predwid 4e 6ablona sywpadne
[15:41:48] <@ircnewbie> 6ablona zapo4wa s ^ i zawyr6wa s $
[15:42:09] * IgNoReR`offline is now known as IgNoReR
[15:42:10] <@ircnewbie> koeto ozna4awa 4e celiqt string trqbwa da sywpadne s izraza
[15:42:29] * nik2 (~[email protected]) has joined #irchelp
[15:42:30] <@ircnewbie> \w+ meta-simwolnata poredica sywpada s edna duma
[15:42:52] <@ircnewbie> \W+ meta-simwolnata poredica sywpada s praznite mesta m/u dumite
[15:42:57] * hacker__ is now known as aaaaaaaa
[15:43:05] * aaaaaaaa is now known as aaaaaaaaaaaaaaa
[15:43:05] * skyDive is now known as abruski
[15:43:16] * aaaaaaaaaaaaaaa is now known as hacker__
[15:43:22] <@ircnewbie> mojete da testwate za dopylnitelni dumi kato dobawite edna ili powe4e poredici ot meta-simwolite \W+(\w+) za wsqka dopylnitelna duma
[15:43:36] <@ircnewbie> ako mislite 4e ima neshto predi ili sled tezi dumi
[15:43:40] <@ircnewbie> primerno prazni mesta ili tabulaciq
[15:43:44] <@ircnewbie> ili punktuacionni znaci
[15:43:58] * Chaoskiller ([email protected]) has joined #irchelp
[15:44:02] <@ircnewbie> mojete da izpolzwate \b sled ^ i predi $
[15:44:10] <@ircnewbie> s +-4e sled b-to
[15:44:25] * bota_na_hacker_ ([email protected]) has joined #irchelp
[15:44:25] * abruski is now known as abruski-sad
[15:44:32] <@ircnewbie> nqma da e losho sega malko primeri
[15:44:44] <@ircnewbie> <paste>
[15:44:53] <@ircnewbie> $_ = "This is the way to San Jose.";
[15:44:56] <@ircnewbie> $word = '\w+'; # sywpada s cqla duma
[15:44:56] <@ircnewbie> $space = '\W+'; # sywpada pone s edno prazno mqsto
[15:44:56] <@ircnewbie> $string = '.*'; # sywpada s proizwolen broj simwoli,
[15:44:56] <@ircnewbie> # no ne i s \n.
[15:44:56] <@ircnewbie> ($one, $two, $rest) = (m/^($word) $space ($word) $space ($string)/x);
[15:44:56] <@ircnewbie> </paste>
[15:45:40] <@ircnewbie> sled tozi izraz $1 ste sydyrja pyrwata duma $2 - wtorata a $rest - ostanalata 4ast
[15:45:46] <@ircnewbie> koeto e w $_
[15:46:14] <@ircnewbie> tozi primer izpolzwa interpolaciqta na promenliwite nadqwajki se 4e ste e po-lesno za 4etene
[15:46:21] * |NGSF|Darken ([email protected]) has left #irchelp
[15:46:38] <@ircnewbie> tazi tehnika systo i pod4ertawa koi meta-poredici se izpolzwa
[15:46:58] <@ircnewbie> za sywpadenieto na dumi i prazni mesta
[15:46:58] * EMINEM````````` ([email protected]) has joined #irchelp
[15:47:03] * nicky^^ ([email protected]) has joined #irchelp
[15:47:09] * hacker__ ([email protected]) has left #irchelp
[15:47:12] * bota_na_hacker_ ([email protected]) has left #irchelp
[15:47:24] <@ircnewbie> ostawq 4itatelq da se fokusira wyrhu celiq izraz a ne wyrhu indiwidualnite komponenti na 6ablona
[15:47:40] * Chaoskiller ([email protected]) has left #irchelp
[15:47:50] <@ircnewbie> ako iskate da prowerite dali $_ sydyrja legalno ime na promenliwa w Perl
[15:48:07] * vfork ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[15:48:07] * BASTER ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[15:48:07] * vIpEr[CS] ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[15:48:07] * RedHat (~[email protected]) Quit (irc.spnet.net irc.naturella.com)
[15:48:07] * snyper-3a_ko3 ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[15:48:07] * DIAVLO`SaD ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[15:48:07] <@ircnewbie> mojete da naprawite slednoto
[15:48:16] <@ircnewbie> <paste>
[15:48:22] * BASTER ([email protected]) has joined #irchelp
[15:48:22] * RedHat (~[email protected]) has joined #irchelp
[15:48:22] * vfork ([email protected]) has joined #irchelp
[15:48:22] * vIpEr[aWaY] ([email protected]) has joined #irchelp
[15:48:22] * DIAVLO`SaD ([email protected]) has joined #irchelp
[15:48:22] * snyper-3a_ko3 ([email protected]) has joined #irchelp
[15:48:22] * irc.naturella.com sets mode: +v vfork
[15:48:30] * nik666 ([email protected]) has joined #irchelp
[15:48:31] * Black^PoweR ([email protected]) Quit (Read error: 32 (Broken pipe))
[15:48:57] <@ircnewbie> $result = m/
[15:48:58] <@ircnewbie> ^ (?# opredelq na4aloto na stringa)
[15:48:58] <@ircnewbie> [\$\@\%] (?# izpolzwa klas ot simwoli za sywpadenie na pyrwiqt)
[15:48:58] <@ircnewbie> (?# simwol ot imeto na promenliwata)
[15:48:58] <@ircnewbie> [a-z] (?# izpolzwa klas ot simwoli, za da se uweri, 4e imoet zapo4wa s bukwi)
[15:49:02] <@ircnewbie> \w* (?# izpolzwa klas ot simwoli, za da se uweri, 4e ostanalata 4ast ot)
[15:49:06] * ircnewbie sets mode: +v nik666
[15:49:12] <@ircnewbie> (?# promenliwata e ime ot bukwi, cifri i _))
[15:49:12] <@ircnewbie> $ (?# opredelq kraq na stringa. towa ozna4awa, 4e)
[15:49:12] <@ircnewbie> (?# za da ima sywpadenieto imeto na promenliwata, trqbwa da byde samo w $_)
[15:49:16] <@ircnewbie> /ix; # izpolzwajte /i opciqta, za da ne se prawi razlika mejdu
[15:49:18] <@ircnewbie> # golemi i malki buwki i /x za raz6ireniq mod
[15:49:22] <@ircnewbie> </paste>
[15:49:30] <@ircnewbie> wb nik
[15:49:34] <+nik666> re
[15:50:06] * BASTER ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[15:50:12] <@ircnewbie> sled tozi izraz $result ste byde istina ako $_ sydyrja legalno ima na promenliwa ili lyja ako ne
[15:50:16] <@ircnewbie> brb malko WC
[15:50:20] * adidaS^ (~[email protected]) has joined #irchelp
[15:50:26] <@ircnewbie> mojete da zadawate wyprosi sega
[15:51:23] * yaMep (~[email protected]) has joined #irchelp
[15:51:39] * Let`s`Go (~[email protected]) has joined #irchelp
[15:51:44] * Cm_MaHuaK (~[email protected]) has left #irchelp
[15:51:53] * Cm_MaHuaK (~[email protected]) has joined #irchelp
[15:52:00] * adidaS^ (~[email protected]) has left #irchelp
[15:52:01] * yaMep (~[email protected]) has left #irchelp
[15:52:07] * Cm_MaHuaK (~[email protected]) has left #irchelp
[15:52:10] <@ircnewbie> prodyljawame
[15:52:22] <@ircnewbie> sega shte wi potrowim malko :)
[15:52:58] <@ircnewbie> ako iskata da namerite sywpadanieto s wsi4ki legalni celi 4isla w $_ mojete da naprawite: @results = m/^\d+$|^0[x][\da-f]+$/gi;
[15:53:04] <@ircnewbie> :)
[15:53:12] <+nik666> I'v got the poison, I'v got the remedy ...
[15:53:33] * Crazy-pi4 ([email protected]) Quit (UniBG script 9.0 www.mvpsoft.cjb.net)
[15:53:38] <@ircnewbie> i`ve got a cup of coca-cola ...
[15:54:10] <@ircnewbie> sled tozi izraz @result ste sydyrja spisyk s wsi4kite celi 4isla w $_
[15:54:17] <@ircnewbie> ili shte e prazen ako nqma sywpadeniq
[15:54:29] * abruski-sad is now known as abruski-away
[15:54:40] <@ircnewbie> ako iskate da naprawite sywpadenie s kraq na pyrwata duma w string - m/\w\W/;
[15:55:00] <@ircnewbie> sled tozi izraz $& ste sydyrja pyrwiq simwol ot wtorata duma
[15:55:14] <@ircnewbie> i praznoto mqsto to4no predi nego
[15:55:43] * BASTER ([email protected]) has joined #irchelp
[15:55:45] * adventor is now known as mnogo-lubopitna
[15:55:51] * EMINEM````````` is now known as ^EmIn3m_sf^
[15:55:55] <@ircnewbie> greshka
[15:56:10] <@ircnewbie> i sledwashtiqt simwol sled nego
[15:56:50] <@ircnewbie> ako iskate samo poslednia simwol izpolzwajte pametta za 6ablona (m/(\w)\W/;)
[15:56:59] * BASTER ([email protected]) Quit (Killed (irc.spnet.net (irc.naturella.com <- irc.naturella.com)))
[15:57:06] * MIDASs ([email protected]) has joined #irchelp
[15:57:10] <@ircnewbie> togawa $1 ste byde rawno na poslednia simwol ot pyrwata duma
[15:57:19] * BASTER ([email protected]) has joined #irchelp
[15:57:26] <@ircnewbie> ako izpolzwate globalnata opciq @array = m/\w\W/g;
[15:57:29] * aiRCnuHk0 ([email protected]) has joined #irchelp
[15:57:50] <@ircnewbie> togawa mojete da naprawite masiw kojto sydyrja posledniq simwol ot wsqka duma w stringa
[15:57:59] * BASTER ([email protected]) Quit (Killed (irc.spnet.net (irc.naturella.com <- irc.naturella.com)))
[15:58:00] <@ircnewbie> dobra ideq e izpolzwaneto na \b
[15:58:02] <@ircnewbie> |> hipodil-skakalec.mp3
[15:58:04] * TapuKaTa ([email protected]) Quit (Ping timeout: 120 seconds)
[15:58:08] * Chaoskiller ([email protected]) has joined #irchelp
[15:58:10] <@ircnewbie> skakaueeeeeeeeeeeeeeeeeeeeeeec
[15:58:12] * RaideR_FlayeR (~[email protected]) has joined #irchelp
[15:58:14] <@ircnewbie> nqma se pwasis kopeue
[15:58:20] * BASTER`FiLm ([email protected]) has joined #irchelp
[15:58:22] <@ircnewbie> ops
[15:58:32] * BASTER`FiLm is now known as BASTER
[15:58:32] * RaideR_FlayeR (~[email protected]) has left #irchelp
[15:58:46] <@ircnewbie> ako iskate da namerite pyrwiq simwol ot wtorata duma w string izpolzwajte m/\W\w/;
[15:59:32] <@ircnewbie> tej kato tozi 6ablon e to4no obratniqt na 6ablona kojto sywpada6e s posledniq simwol ot dumata
[15:59:36] * BASTER ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[15:59:44] <@ircnewbie> nqma da sywpadne s na4aloto na pyrwata duma!!!
[15:59:54] <@ircnewbie> towa e zaradi \W meta-simwola
[16:00:10] <@ircnewbie> prosto dobawqneto na * meta-simwola kym 6abola sled \W nqma da pomogne
[16:00:30] <@ircnewbie> tej kato ste sywpadne s nula ili edin simwol
[16:00:58] * joao ([email protected]) has joined #irchelp
[16:01:00] <@ircnewbie> koito ne e simwol ot duma
[16:01:01] * RaideR_FlayeR (~[email protected]) has joined #irchelp
[16:01:14] <@ircnewbie> i taka ste sywpadne s wsqka bukwa ot dumata ot string
[16:01:22] <@ircnewbie> no pyk zatowa e naprawen \b
[16:01:26] <@ircnewbie> nqkakwi wyprosi ?!
[16:01:45] * mnogo-lubopitna is now known as Trillian-user
[16:01:46] * BASTER ([email protected]) has joined #irchelp
[16:01:48] <@ircnewbie> anyone ?
[16:01:52] <@ircnewbie> you ? you ?
[16:01:58] * Zajo_ ([email protected]) Quit (Ping timeout: 240 seconds)
[16:02:12] <+nik666> ! $me, ! $me
[16:02:20] <@ircnewbie> yes my dear
[16:02:21] * MILSEM ([email protected]) has joined #irchelp
[16:02:28] <@ircnewbie> kaji ;)
[16:02:34] <+nik666> ! == not
[16:02:36] <+nik666> ;-)
[16:02:36] * BASTER ([email protected]) Quit (Killed (NS (Nickname Enforcement)))
[16:02:36] * gug0 (~[email protected]) has joined #irchelp
[16:02:42] <@ircnewbie> ah .. az mislq attention :)
[16:02:59] * ma4omen ([email protected]) has joined #irchelp
[16:03:00] * @ircnewbie dimwit
[16:03:14] <+nik666> e, za perl govorim fse pak ;-)
[16:03:26] <@ircnewbie> ako iskate da namerite imeto na fajl w opisan pyt do fajl mojete da naprawite $_ = '/user/Jackie/temp/pr0n.dat'; m!^.*/(.*)!;
[16:03:30] <@ircnewbie> hehehe ;)
[16:03:50] <@ircnewbie> $1 = 'pr0n.dat'; sled izraza
[16:03:57] * vIpEr[aWaY] ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[16:03:57] * vfork ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[16:03:57] * snyper-3a_ko3 ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[16:03:57] * RedHat (~[email protected]) Quit (irc.spnet.net irc.naturella.com)
[16:03:57] * DIAVLO`SaD ([email protected]) Quit (irc.spnet.net irc.naturella.com)
[16:03:57] * RaideR_FlayeR (~[email protected]) Quit (irc.spnet.net irc.naturella.com)
[16:04:14] <@ircnewbie> ako iskate da imate sywpadenie s dwe predstawki w edna duma
[16:04:26] * BASTER ([email protected]) has joined #irchelp
[16:04:26] * RaideR_FlayeR (~[email protected]) has joined #irchelp
[16:04:26] * RedHat (~[email protected]) has joined #irchelp
[16:04:26] * vfork ([email protected]) has joined #irchelp
[16:04:26] * vIpEr[aWaY] ([email protected]) has joined #irchelp
[16:04:26] * DIAVLO`SaD ([email protected]) has joined #irchelp
[16:04:26] * snyper-3a_ko3 ([email protected]) has joined #irchelp
[16:04:26] * irc.naturella.com sets mode: +v vfork
[16:04:40] * lAmEmAsTeRfLaSh ([email protected]) has left #irchelp
[16:04:40] * lAmEmAsTeRfLaSh ([email protected]) has joined #irchelp
[16:04:40] <@ircnewbie> kato "rockfish" i "monkfish"
[16:04:41] * Chaoskiller ([email protected]) has left #irchelp
[16:04:43] <@ircnewbie> mojete da naprawite m/(?:rock|monk)fish/x;
[16:05:21] <@ircnewbie> meta-simwola za reduwane (|) se izpolzwa za da se kaje 4e ili rock ili monk posledwani ot fish trqbwa da bydat namereni
[16:05:36] * DrWatson ([email protected]) has joined #irchelp
[16:05:36] * RaideR_FlayeR (~[email protected]) Quit (Killed (NS (Nickname Enforcement)))
[16:05:53] <@ircnewbie> ako iskate da znaete koe po-to4no e namereno izpolzwajte skobi (mahnete ?:) w 6ablona
[16:06:00] * FuCkER` (~[email protected]) has joined #irchelp
[16:06:13] <@ircnewbie> nqkakwi wyprosi ?
[16:06:41] <@ircnewbie> ako iskate da tyrsite fajl za string i da otpe4atate nqkoi ot zaobikalestite go linii ...
[16:06:44] * CS sets mode: +v B-l-o-o-d-y
[16:06:50] * Zajo_ ([email protected]) has joined #irchelp
[16:06:52] <+B-l-o-o-d-y> nqma varposi
[16:06:58] * CS sets mode: -v B-l-o-o-d-y
[16:07:19] <@ircnewbie> B-l-o-o-d-y: ako imash wypros /msg RegExp-Quest wyprosa ... ako nikoj ne se obadi shte smetnem 4e nqma
[16:07:19] <@ircnewbie> okay ?
[16:07:31] * FuCkER` is now known as RaideR_FlayeR
[16:07:43] <@ircnewbie> open(FILE, "<fndstr.dat");
[16:07:46] * looney (~[email protected]) has joined #irchelp
[16:07:49] <+nik666> mm, ima li osoben smisal ot /x ?
[16:08:01] <@ircnewbie> nik uj stawa po golqma 4etimost
[16:08:12] * looney (~[email protected]) has left #irchelp
[16:08:15] <@ircnewbie> slagat se gadnite komments koito nas ni draznqt
[16:08:22] * BoReD-OF-IRC ([email protected]) has joined #irchelp
[16:08:23] <+nik666> yep
[16:08:23] <@ircnewbie> no pyk dosta hora gi obi4at
[16:08:52] <@ircnewbie> 4ajte shte paste primera
[16:09:02] * RePlaSmE^MeN ([email protected]) has joined #irchelp
[16:09:09] <@ircnewbie> <paste>
[16:09:14] * BoReD-OF-IRC ([email protected]) has left #irchelp
[16:09:15] <@ircnewbie> open(FILE, "<fndstr.dat");
[16:09:16] <@ircnewbie> @array = <FILE>;
[16:09:16] <@ircnewbie> close(FILE);
[16:09:23] <@ircnewbie> # opredelq koj string da se nameri
[16:09:24] * Lud-Kartoff (~[email protected]) has joined #irchelp
[16:09:27] <@ircnewbie> $stringToFind = "A";
[16:09:37] <@ircnewbie> # ciklim celiqt masiw za da tyrsim stringa
[16:09:41] <@ircnewbie> for ($index = 0; $index <= $#array; $index++) {
[16:09:41] <@ircnewbie> last if $array[$index] =~ /$stringToFind/;
[16:09:41] <@ircnewbie> }
[16:09:51] * Trillian-user is now known as adventor
[16:09:52] <@ircnewbie> # izpolzwajte $index za da print dwe linii predi
[16:09:59] * Shinji (~[email protected]) has joined #irchelp
[16:10:01] <@ircnewbie> # i sled liniqta w koqto se sydyrja sywpadenieto
[16:10:02] * Shinji (~[email protected]) has left #irchelp
[16:10:05] <@ircnewbie> foreach (@array[$index-2..$index+2]) {
[16:10:07] <@ircnewbie> print("$index: $_");
[16:10:07] <@ircnewbie> $index++;
[16:10:07] <@ircnewbie> }
[16:10:09] <@ircnewbie> </paste>
[16:10:20] * DrWatson is now known as MeHe_Me_HeMa
[16:10:22] * RePlaSmE^MeN ([email protected]) Quit (Connection Reset By Peer)
[16:10:23] <@ircnewbie> ima mnogo na4ini da izpylnim tozi tip tyrsene
[16:10:31] <@ircnewbie> i tozi e samo edin ot tqh
[16:10:36] * MeHe_Me_HeMa is now known as DrWatson
[16:10:47] <@ircnewbie> tazi tehnika e mnogo dobra za dolu gore malki fajlowe
[16:11:01] <@ircnewbie> tyj kato celiqt fajl se 4ete w pametta wednyj
[16:11:18] * krokozubel (~[email protected]) Quit (jivei taka 4e kato umresh i dyavol da ti zapali svesh)
[16:11:21] <+theJackal> vupros pri "[ircnewbie] open(FILE, "<fndstr.dat");" tva "<" pred imeto na file-a vid prenasochvane na stdout li e ?
[16:11:21] <@ircnewbie> w dopylnenie tazi programa priema 4e whodniq fajl winagi sydyrja stringa kojto tyrsite
[16:11:43] <+theJackal> taka de stdin ? ili prosto pravopisna greshka
[16:11:55] * Primitive_Angel ([email protected]) has joined #irchelp
[16:11:57] <+nik666> pravilno e, vypreki che moje i bez <
[16:12:09] <@ircnewbie> theJackal: towa e otwarqne pri read mode na fajla
[16:12:15] <@ircnewbie> i kakto kaza nik moje da se propusne
[16:12:29] <+nik666> po default open (FILE, "/some/file"); otvaria samo za chetene
[16:12:30] <@ircnewbie> i e hubawo da se naprawi or die sled open-a
[16:12:45] * Primitive_Angel ([email protected]) has left #irchelp
[16:12:45] <@ircnewbie> shtoto mnogo 4esto se polu4awat sled towa 4etene file handle kojto ne e otworen wsyshnost daje
[16:13:00] <+theJackal> mda tova beshe sledvastia mi vupros
[16:13:07] <@ircnewbie> greshkata pri greshno otwarqne se sydrja w $!
[16:13:14] <+theJackal> dali ima niakuv error handling (nesto koeto pri rabota sus streams/files ima nujda
[16:13:23] <@ircnewbie> t.e die "$!"
[16:13:37] <@ircnewbie> daje e hubawo da se sloji \n sled stringa ako iskash da mahnesh na koj red e die-nalo
[16:14:01] <@ircnewbie> po princip sled kraq na programata wsi4ki file handles se zatwarqt
[16:14:09] <@ircnewbie> ili sled kraq na nqkaf cikyl ili sub
[16:14:12] * Lud-Kartoff (~[email protected]) has left #irchelp
[16:14:21] <@ircnewbie> toj awtomati4no gi zatwarq ne e nujno da se prawi close
[16:14:24] * _XpLiSiT_ (~[email protected]) has joined #irchelp
[16:14:27] <@ircnewbie> no e hubawo da se prawi .. da ne se zaema pamet
[16:14:31] * ma4omen ([email protected]) Quit
[16:14:39] <+theJackal> posleden vupros , kak se setvat opciite za vida otvariane (read only , write, append etc) ili tva ste doide natatuk v lekciata
[16:14:41] <@ircnewbie> oshte wyprosi ?
[16:15:19] <@ircnewbie> theJackal: mi setwat open(FILE, ">fndstr.dat"); - za pisane oba4ene se iztriwa predi towa fajla
[16:15:25] <@ircnewbie> ili se syzdawa ako ne e syzdaden
[16:15:29] * _XpLiSiT_ (~[email protected]) Quit
[16:15:33] <@ircnewbie> >> twa e append
[16:15:41] <@ircnewbie> ina4e ima pipes kakto pri drugite ezici
[16:15:46] <+theJackal> aham zvuchi logichno ;)
[16:15:51] <@ircnewbie> no towa ne wliza w regulqrnite ezici ;)
[16:15:51] * ReWave ([email protected]) has joined #irchelp
[16:15:59] <@ircnewbie> *izrazi
[16:16:11] <@ircnewbie> ako imash da pitash oshte neshto pitaj spokojno :)
[16:16:12] <+theJackal> e ne vsichki sme advanced perl coders ;))
[16:16:33] <@ircnewbie> perl e mnogo golqma materiq za da se nau4i
[16:16:35] <@ircnewbie> 4e da kajesh 4e si advanced
[16:16:43] <@ircnewbie> nik moje da potwyrdi :)
[16:16:46] <+theJackal> mai triabvashe purvata lekcia da bude osnovi na perl ne da se pochva tolkova slojno ;)
[16:16:53] <+nik666> yep
[16:17:13] <@ircnewbie> theJackal: tezi regulqrni izrazi wajat i za ostanalite ezici kakto ti kazah w4era
[16:17:21] <@ircnewbie> daje i w 1 mysql s kojto dade primer ima regulqrni izrazi
[16:17:45] <@ircnewbie> LIKE REGEX e w mysqla
[16:17:45] <@ircnewbie> maj
[16:18:03] <@ircnewbie> moje li da prodyljim ?
[16:18:05] * RaideR_FlayeR (~[email protected]) Quit
[16:18:15] <@ircnewbie> mojem posle da zapo4nem malki lekciijki za perl wsqka sedmica
[16:18:19] <@ircnewbie> stiga da ima hora ;)
[16:18:31] <@ircnewbie> nik ako udari ramo :)
[16:18:35] * ReWave ([email protected]) has left #irchelp
[16:18:40] <+theJackal> iskam edna za nachinaeshti ;)
[16:18:41] <+nik666> so kef
[16:19:15] <@ircnewbie> ako iskate da dobawite nadstawka kym string naprawete $suffix = "Z"; s/^(.*)/$1$suffix/;
[16:19:51] <@ircnewbie> stawa systoto samo 4e se dobawq nadstawkata w kraq moje da se naprawi i s operatora za prisyedinqwane
[16:20:19] <@ircnewbie> ako iskate da razmenite pyrwite dwe dumi w string s/^\s*(\w+)\W+(\w+)/$2 $1/;
[16:20:33] <@ircnewbie> razmqnata izpolzwa promenliwite ot pametta $1 i $2
[16:20:36] * adventor ([email protected]) Quit (Status-ex-cedo[Ne o4akvaite prekaleno mnogo ot kraq na sveta])
[16:20:53] <@ircnewbie> za gorniqt primer ne e losho da se kaje 4e operatoryt za prisyedinqwane e dosta po optimiziran
[16:21:01] * Let`s`Go (~[email protected]) Quit
[16:21:03] <@ircnewbie> taka 4e ako iskate da prawite podobni neshta prawete go s nego
[16:21:10] <@ircnewbie> toj e to4ka (.)
[16:21:24] <@ircnewbie> t.e $string .= 'a'; slepwa a kym string
[16:21:26] * sTaRcRaFt ([email protected]) Quit (Read error: 104 (Connection reset by peer))
[16:21:43] <@ircnewbie> koeto e syshtoto kato $string = $string . 'a';
[16:22:07] <@ircnewbie> za da dublikirate wseki simwol w string: s/\w/$& x 2/eg;
[16:22:42] * MILSEM ([email protected]) Quit (Ebi navred ebi bezchet ebi baldazi belogazi ebi vseki koito se nagazi ebi i toz koito go chete za da ne moje toi da te e)
[16:22:47] <@ircnewbie> za da da naprawite wsqka pyrwa bukwa ot dumata na golqma bukwa: s/(\w+)/\u$1/g;
[16:23:11] <@ircnewbie> /g opciqta zna4i 4e zamqnata se prawi kolkoto se moje powe4e pyti
[16:23:25] <@ircnewbie> \w+ meta poredicata ste sywpadne i ste byde postawena w $1
[16:23:38] <@ircnewbie> sled towa ste byde zamenena s \u$1 koeto prawi pyrwiqt simwol golqm
[16:23:55] <@ircnewbie> ako iskate da dobawite string m/u dwa powtarqsti se simwola:
[16:24:10] <@ircnewbie> <paste>
[16:24:15] <@ircnewbie> $_ = "!!!!";
[16:24:16] <@ircnewbie> $char = "!";
[16:24:16] <@ircnewbie> $insert = "AAA";
[16:24:21] <@ircnewbie> s{
[16:24:23] <@ircnewbie> ($char) # gledame za specifi4en simwol.
[16:24:24] <@ircnewbie> (?=$char) # prawim go otnowo, no ne go wkliu4wame w stringa na sywpadenieto
[16:24:24] <@ircnewbie> # taka 4e sledwastoto tyrsene ste go nameri otnowo.
[16:24:31] <@ircnewbie> {
[16:24:32] <@ircnewbie> $char . $insert # sled towa, se slepwa opredeleniqt simwol sys stringa za dobawqne
[16:24:35] <@ircnewbie> }xeg; # izpolzwa se raz6ireniqt mod za ocenqwane na 4asta za zamqna w
[16:24:38] <@ircnewbie> # 6ablona, i sywpada s kolkoto se moje powe4e pyti.
[16:24:38] <@ircnewbie> print("$_\n");
[16:24:42] <@ircnewbie> </paste
[16:24:54] * KOTETO-_13 (~[email protected]) has joined #irchelp
[16:24:56] * KOTETO-_13 (~[email protected]) Quit (Remote closed the connection)
[16:25:09] <@ircnewbie> tozi primer izpolzwa raz6ireniqt mod za da dobawi komentari direktno w koda na regulqrniqt izraz
[16:25:15] * lAmEmAsTeRfLaSh ([email protected]) Quit (No fear, no pain, nobody left to blame, I'll try alone, Make destiny my own...)
[16:25:27] <@ircnewbie> 6ablona za sywpadenie ne reflektira direktno glawnata cel
[16:25:29] * lAmEmAsTeR-g0n3 is now known as lAmEmAsTeRfLaSh
[16:25:39] <@ircnewbie> koqto e dobawqneto na string m/u dwa powtarqsti se simwola
[16:25:51] * krokozubel (~[email protected]) has joined #irchelp
[16:26:21] <@ircnewbie> ako iskate da naprawite dwojno niwo na interpolaciq na promenliwata w 4asta za zamqna na 6ablona s/(\$\w+)/$1/eeg;
[16:26:36] <@ircnewbie> towa e prost primer za dwojno interpolirane na promenliwite
[16:26:56] * Eminem{P} ([email protected]) Quit (-eXtreme- EMINEM!!!!!!!!!!!!!!!!)
[16:27:04] <@ircnewbie> ako $firstVar = "AAA" i $_ = '$firstVar' togawa $_ ste e ekwiwalentno na AAA
[16:27:16] <@ircnewbie> sled kato zamqnata e naprawena
[16:27:19] <@ircnewbie> kliu4yt kym palatkata e 4e 4asta na zamqnata w 6ablona se ocenqwa dwa pyti
[16:27:28] * abruski-away is now known as abruski
[16:27:35] <@ircnewbie> tehnikata e hiper triper masa qka
[16:27:44] <+nik666> ;-)
[16:27:48] <@ircnewbie> moje da se izpolzwa za razrabotwaneto na gre6ki :))
[16:28:03] <@ircnewbie> nqkwi wyprosi do tuka ?
[16:28:13] <@ircnewbie> oswen za hiper triper masa qkata tehnika ? ;b
[16:28:39] <@ircnewbie> sega shte dadem primeri za tr/// i split() i shte swarshwame
[16:29:23] <@ircnewbie> ako iskte da prebroite broq na poqwata na daden simwo w string izpolzwajte $cnt = tr/Aa//;
[16:29:25] * JoroMan ([email protected]) has joined #irchelp
[16:29:46] <@ircnewbie> sled izraza $cnt ste sydyrja broqt kojto pokazwa kolko pyti aa se sydyrja w $_
[16:29:51] * Mr^Big ([email protected]) Quit (Client Exiting)
[16:30:04] <@ircnewbie> tr operatora nqma specialna opciq za ignorirane na malki i golemi bukwi
[16:30:05] * RaideR_FlayeR ([email protected]) has joined #irchelp
[16:30:13] <@ircnewbie> taka 4e i malki i golemi trqbwa da bydat zadadeni
[16:30:55] <@ircnewbie> ako iskate da razdelite string na dumi mojete da naprawite s/^\s+//; @array = split;
[16:31:03] * ELGOD (~[email protected]) Quit (It is a good day to die)
[16:31:08] * NewBoy[n\a] is now known as NewBoy[skuka]
[16:31:21] <@ircnewbie> SHTE POMOLQ ZA POREDEN PYT NE ME PITAJTE ZA WYPROSI SWYRZANI S IRC !!!!!!!!!!
[16:31:39] <@ircnewbie> sled kato se izpylni izraza @array ste byde masiw ot dumi
[16:32:03] <@ircnewbie> predi da razdelim stringa trqbwa da mahnem praznite mesta w na4aloto
[16:32:15] <@ircnewbie> ako towa ne se naprawi split ste syzdade prazni elementi w masiwa s prazni mesta kato stojnosti
[16:32:21] <@ircnewbie> qsno li e towa ?
[16:32:25] * ^EmIn3m_sf^ ([email protected]) Quit (Dead socket)
[16:32:35] <@ircnewbie> gud
[16:33:03] <@ircnewbie> ako se nujdaete da razdelite string sydyrjast se w $line a ne $_ na dumi $line =~ s/^\s+//; @array = split(/\W/, $line);
[16:33:09] * KiRiL4o (~[email protected]) has joined #irchelp
[16:33:18] <@ircnewbie> sled izpylnenie @array ste sydyrja masiw ot dumi
[16:33:27] <+theJackal> (/* ako nesto ima za irc tolkova nalojitelno deto ne moje da se chaka, da pitat mene */ )
[16:33:37] <@ircnewbie> ako trqbwa da razdelite string na simwoli @array = split(//);
[16:33:40] * Zajo_ is now known as Zajo[Perl]
[16:33:41] * ddd_ ([email protected]) has joined #irchelp
[16:33:51] * ircnewbie sets mode: +v ddd_
[16:33:59] <@ircnewbie> sled izpylnenie @array ste sydyrja masiw ot simwoli
[16:34:19] <@ircnewbie> split razpoznawa praznite 6abloni koito se zadawat za razdelqne na simwoli
[16:34:55] <@ircnewbie> ako iskate da razdelite stringa na poleta spored razdelitel na simwolite @array = split(/:/);
[16:35:11] * free`away (~[email protected]) has joined #irchelp
[16:35:12] * free_element ([email protected]) Quit (Varveta da piete ili maikavi putkata ot Bat vi Daka)
[16:35:13] <@ircnewbie> @array ste byde masiw ot stringowe spored stojnosta m/u razdelitelq
[16:35:49] <@ircnewbie> ako ima powtarqsti se razdeliteli - :: w tozi primer togawa prazni elementi ste bydat zapylneni w masiwa
[16:35:55] * IgNoReR is now known as IgNoReR`offline
[16:36:01] <@ircnewbie> izpolzwajte /:+/ kato razgrani4itel za da izbegnete towa
[16:36:05] * free`away is now known as Freemind
[16:36:11] <@ircnewbie> obshto wzeto e towa
[16:36:29] <@ircnewbie> mislim da obobshtim malko kazanoto ot dwata dena i da priklu4wame
[16:36:35] <@ircnewbie> nqkakwi wyprosi ima li do tuk ?
[16:36:36] * DrWatson ([email protected]) Quit (Read error: 32 (Broken pipe))
[16:36:53] <@ircnewbie> sprqmo regulqrnite izrazi mojete da zadawate wsqkakwi wyprosi we4e
[16:36:55] * JoroMan ([email protected]) has left #irchelp
[16:37:03] * KiRiL4o (~[email protected]) has left #irchelp
[16:37:13] <@ircnewbie> /msg RegExp-Quest wypros ako ne ste we4e +v
[16:37:14] <@ircnewbie> ;)
[16:37:38] <@ircnewbie> okay :)
[16:37:45] <@ircnewbie> kakwo kazahme prez dwata dena ..
[16:37:55] <@ircnewbie> zapoznahme wi s regulqrnite izrazi i 6abloni
[16:38:09] <@ircnewbie> operatorite za regulqrni izrazi i obwyrzwastite operatori
[16:38:27] <@ircnewbie> ima tri regulqrni operatora - m//, s///, i tr///
[16:38:47] <@ircnewbie> koito se izpolzwat za da se nameri sywpadenie razmqna ili translirane
[16:38:51] <@ircnewbie> te izpolzwat po podrazbirane $_
[16:39:09] <@ircnewbie> operatorite za obwyrzwane =~ i !~
[16:39:11] * abruski is now known as abruski-qde
[16:39:33] <@ircnewbie> se izpolzwat za da se naprawi regulqren izraz w promenliwa razli4na ot $_
[16:39:45] * RaideR_FlayeR ([email protected]) Quit (changing servers)
[16:39:51] <@ircnewbie> =~ operatora moje da byde izpolzwan s wseki edin ot trite operatora za regulqren izraz
[16:40:03] <@ircnewbie> dokato !~ moje da se polzwa samo s operatora za sywpadenie
[16:40:13] * sTaRcRaFt ([email protected]) has joined #irchelp
[16:40:19] * RaideR_FlayeR ([email protected]) has joined #irchelp
[16:40:29] <@ircnewbie> mojete da smenqte razdelitelite kakto kazahme
[16:40:33] <@ircnewbie> po default toj e /
[16:40:49] * BASTER is now known as BASTER{nAk`nuE}
[16:40:53] <@ircnewbie> obqsnihme wsi4ki opcii i dadohme primeri za tqh
[16:40:54] * Lord_Nykon ([email protected]) has joined #irchelp
[16:40:59] * BASTER{nAk`nuE} is now known as BASTER
[16:41:01] * Black`PoweR ([email protected]) Quit (Ping timeout: 240 seconds)
[16:41:15] <@ircnewbie> dosta wreme otdelihme za syzdawaneto na 6abloni
[16:41:23] <@ircnewbie> za nego trqbwa da se otdeli daje oste wreme ;)
[16:41:33] <+nik666> doooosta vreme ...
[16:41:34] <@ircnewbie> eksperimentirajte si w kyshti s nego ;)
[16:41:39] <@ircnewbie> :)
[16:41:43] <+nik666> rho dai niakoi goliam shablon za domashno ;-)
[16:41:45] <+nik666> kato primer
[16:41:55] <@ircnewbie> towa e naj zapletenata funckiq
[16:42:01] * TapuKaTa ([email protected]) has joined #irchelp
[16:42:04] * Lord_Nykon ([email protected]) has left #irchelp
[16:42:05] <@ircnewbie> nik moje ;)
[16:42:35] * Black`PoweR ([email protected]) has joined #irchelp
[16:43:12] <@ircnewbie> $_ =~ /^\w{3}\s+(\w{3})\s+(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})\s+(\d{4})$/
[16:43:13] <@ircnewbie> primerno towa ;)
[16:43:19] <+nik666> yep ;--)
[16:43:24] <@ircnewbie> a i ne e samo bulk sh!ts ami wyrshi rabota
[16:43:40] <@ircnewbie> i to dosta dobra kato se ima predwid wajnostta na parser-a
[16:43:59] <@ircnewbie> ako nqkoj ima jelanie moje da obsadim izraza sled towa za sega tolkowa
The quieter you become, the more you are able to hear! :AR! https://www.FreeUniBG.eu :YMDEVIL:
Публикувай отговор

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 0 госта