Talk:String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>Kidoblivious
mNo edit summary
Line 1: Line 1:
[http://nonneincesto.zorgam.info/ Nonne incesto] [http://multimediapokemonmillennium.erpast.info/ Multimedia pokemonmillennium net] [http://videosugababes.glend.info/ Video sugababes] [http://petranemcova.useth.info/ Petra nemcova] [http://droven.info/index7_666.html link] [http://terrisummersharcore.droven.info/ Terri summers harcore] [http://mirmohentai.zorgam.info/ Mirmo hentai] [http://christiandior.useth.info/ Christian dior] [http://choppie.info/index3_250.html home] [http://hotelgaysitges.choppie.info/ Hotel gay sitges] [http://fotosoniagrey.useth.info/ Foto sonia grey] [http://societafinanziamento.neeze.info/ Societa finanziamento on line] [http://testocanzonegirlfriend.busied.info/ Testo canzone girlfriend remix] [http://simonavallidownload.glend.info/ Simona valli download] [http://voglioconoscerti.erpast.info/ Voglio conoscerti] [http://tableaupermatrimoni.busied.info/ Tableau per matrimoni] [http://perils.info/index2_666.html map] [http://bottone.thumba.info/ Bottone] [http://miglioriprezzo.erpast.info/ Migliori prezzo dvd vergini] [http://traduzionegirlfriend.droven.info/ Traduzione girlfriend] [http://aixenprovencecose.thumba.info/ Aix en provence cose fare] [http://caminiinmarmo.glend.info/ Camini in marmo] [http://nellafisting.useth.info/ Nella fisting] [http://cumonfeet.choppie.info/ Cum on feet] [http://orgefoto.glend.info/ Orge foto] [http://viniciocapossela.droven.info/ Vinicio capossela accordi] [http://viaggiovienna.droven.info/ Viaggio vienna budapest] [http://ditalino.erpast.info/ Ditalino] [http://contattowindows.erpast.info/ Contatto windows live messenger] [http://animalfreesex.thumba.info/ Animal free sex] [http://ministerodell.perils.info/ Ministero dell istruzione] [http://pensionihotel.useth.info/ Pensioni hotel bressanone] [http://veronicazemanova.erpast.info/ Veronica zemanova video gratis] [http://neeze.info/index0_666.html site] [http://hotelpalinuro.thumba.info/ Hotel palinuro] [http://risorsadelcomputer.perils.info/ Risorsa del computer] [http://tesmedaccessorio.glend.info/ Tesmed accessorio elettrostimolatore] [http://manichinoferro.erpast.info/ Manichino ferro] [http://trucchithemehospital.neeze.info/ Trucchi theme hospital playstation] [http://sfondiwinx.perils.info/ Sfondi winx] [http://puntorosso.perils.info/ Punto rosso] [http://smsinviaregratis.erpast.info/ Sms inviare gratis] [http://wwwamitiefr.thumba.info/ Www amitie fr] [http://porcheincinte.glend.info/ Porche incinte] [http://spywaredoctorcrack.zorgam.info/ Spyware doctor crack] [http://pornodonneecavalli.choppie.info/ Porno donne e cavalli] [http://moglivogliose.choppie.info/ Mogli vogliose] [http://appartamento.useth.info/ Appartamento forio ischia] [http://basimp3.useth.info/ Basi mp3] [http://bobsinclair.thumba.info/ Bob sinclair] [http://shemalefreemovie.choppie.info/ Shemale free movie] [http://momfuckboy.zorgam.info/ Mom fuck boy] [http://venaria.choppie.info/ Venaria] [http://canelli.busied.info/ Canelli] [http://centrobenessere.perils.info/ Centro benessere termali] [http://fighebollenti.zorgam.info/ Fighe bollenti] [http://temigratispernokia.choppie.info/ Temi gratis per nokia 5200] [http://soniadaquino.perils.info/ Sonia daquino] [http://choppie.info/index3_666.html page] [http://corriereadriatico.glend.info/ Corriere adriatico] [http://annuncioerotici.perils.info/ Annuncio erotici transessuale] [http://flashgameit.erpast.info/ Flashgame it] [http://belletetta.glend.info/ Belle tetta] [http://finanziamento.thumba.info/ Finanziamento regione sardegna giovane] [http://adawaregratis.droven.info/ Adaware gratis] [http://httpfiga.thumba.info/ Http  figa] [http://galleriagratis.glend.info/ Galleria gratis vecchie troie scopano] [http://animalsexfoto.choppie.info/ Animal sex foto] [http://vecchiemature.busied.info/ Vecchie mature] [http://fotodonnesenza.perils.info/ Foto donne senza mutande] [http://suoneriagratis.neeze.info/ Suoneria gratis per cellulare] [http://piscinacomunale.zorgam.info/ Piscina comunale ravenna] [http://melitaporno.zorgam.info/ Melita porno] [http://busied.info/index5_1000.html url] [http://rossellabrescia.erpast.info/ Rossella brescia video] [http://choppie.info/index5_250.html url] [http://glend.info/index2_666.html homepage] [http://cortomaltese.perils.info/ Corto maltese gruppo musicale] [http://angelacavagna.perils.info/ Angela cavagna] [http://fotopornostarroberta.thumba.info/ Foto pornostar roberta missoni] [http://donoratico.neeze.info/ Donoratico] [http://cicciolinavideo.useth.info/ Cicciolina video cavallo] [http://culidonna.droven.info/ Culi donna] [http://cherydiva.zorgam.info/ Chery diva] [http://tatuaggiindiani.useth.info/ Tatuaggi indiani] [http://giornaleosservatore.droven.info/ Giornale osservatore romano] [http://supercockfucking.droven.info/ Super cock fucking] [http://ragazzegiapponesi.perils.info/ Ragazze giapponesi nude] [http://casamicciolaterme.droven.info/ Casamicciola terme hotel] [http://piastrine.perils.info/ Piastrine] [http://prestitorichiesta.droven.info/ Prestito richiesta] [http://topescortitalia.thumba.info/ Top escort italia] [http://choppie.info/index3_666.html page] [http://libreriacartongesso.perils.info/ Libreria cartongesso] [http://siennamiller.useth.info/ Sienna miller sexy] [http://pornodonnecon.busied.info/ Porno donne con animali] [http://lordoftheringsignore.droven.info/ Lord of the ring signore anello] [http://albergoistanbul.zorgam.info/ Albergo istanbul] [http://invalidicivili.erpast.info/ Invalidi civili] [http://brigittenielsen.useth.info/ Brigitte nielsen nuda] [http://msanutka.jino-net.ru/blog/saintpierre-riunione/ saintpierre (riunione)] [http://lanadance.jino-net.ru/nokia100/ nokia 9300] [http://vera-megastar.jino-net.ru/small/max-pain.html max pain] [http://listjanysik.jino-net.ru/text/fzero-for/ fzero for game boy advance] [http://vera-megastar.jino-net.ru/small/tette-molli.html tette molli] [http://veleo.cn/web/guendalinacanessa.html Guendalina canessa] [http://withouter.cn/articles/donnachescopa.html Donna che scopa cavallo] [http://withouter.cn/articles/donnenudiste.html Donne nudiste] [http://scruf.cn/filmatisexygratis/ Filmati sexy gratis] [http://vera-megastar.jino-net.ru/small/fifa-soccer4.html fifa soccer 96] [http://lanadance.jino-net.ru/porno-online/ porno online gratis] [http://veleo.cn/web/gommonefuoribordo.html Gommone fuoribordo usato piemonte suzuki] [http://tikula.jino-net.ru/data/grandis-sebastiano/ grandis sebastiano] [http://tainka.jino-net.ru/styles/bps1.htm bps] [http://witchlander.cn/topic/cartineprovincia.html Cartine provincia italia] [http://vera-megastar.jino-net.ru/small/partito-il.html partito il beta test di world of warcraft] [http://tainka.jino-net.ru/styles/daniela-russo1.htm daniela russo] [http://scruf.cn/fotodicazzi/ Foto di cazzi enormi] [http://svetlanavt.jino-net.ru/text/journal-francais.htm journal francais] [http://traidels.cn/blog/anzianetroie.html Anziane troie] [http://vera-megastar.jino-net.ru/small/testo-musicale5.html testo musicale fuck it] [http://svetlanavt.jino-net.ru/text/mp-flash.htm mp3 flash radio fm] [http://listjanysik.jino-net.ru/text/brazilian-sex/ brazilian sex] [http://fruscianteisgod.jino-net.ru/view/volo-empoli.html volo empoli] [http://listjanysik.jino-net.ru/text/bi-and/ bi and gay friendly resources] [http://witchlander.cn/topic/cciaatorino.html Cciaa torino] [http://tainka.jino-net.ru/styles/adattatore-vari.htm adattatore vari e altri] [http://tainka.jino-net.ru/styles/top-per.htm top per donna] [http://vera-megastar.jino-net.ru/small/dwarf.html dwarf] [http://vera-megastar.jino-net.ru/small/sony-hc13.html sony hc22] [http://tikula.jino-net.ru/data/difetti-mercedes/ difetti mercedes classe a] [http://msanutka.jino-net.ru/blog/hd-lcd/ hd lcd tv] [http://witchlander.cn/topic/capezzoligrossi.html Capezzoli grossi] [http://lanadance.jino-net.ru/la-mia57/ la mia anima canta] [http://witchlander.cn/topic/bellechiavate.html Belle chiavate] [http://snorke.cn/topic/fotoragazzeche.html Foto ragazze che scopano] [http://svetlanavt.jino-net.ru/text/le-serpent.htm le serpent] [http://tikula.jino-net.ru/data/mas-flow1/ mas flow family] [http://withouter.cn/articles/culograsso.html Culo grasso] [http://msanutka.jino-net.ru/blog/credit-repair/ credit repair] [http://fruscianteisgod.jino-net.ru/view/the-moody1.html the moody blues your wildest dreams] [http://listjanysik.jino-net.ru/text/microsoft-xp/ microsoft xp home] [http://msanutka.jino-net.ru/blog/dorismar/ dorismar] [http://vera-megastar.jino-net.ru/small/canon-videoproiettori.html canon videoproiettori] [http://svetlanavt.jino-net.ru/text/illuso.htm illuso] [http://witchlander.cn/topic/ciaoamicos.html Ciao amicos] [http://lanadance.jino-net.ru/dvd-hard5/ dvd hard disk 250 gb] [http://tainka.jino-net.ru/styles/skoda1.htm skoda 4 4] [http://tainka.jino-net.ru/styles/maserati-spider.htm maserati spider biturbo] [http://svetlanavt.jino-net.ru/text/poltrona-anziani.htm poltrona anziani] [http://tikula.jino-net.ru/data/frigorifero-hoover1/ frigorifero hoover frigoriferi] [http://veleo.cn/web/incontridonnerumene.html Incontri donne rumene] [http://listjanysik.jino-net.ru/text/dal-fabbro/ dal fabbro beniamino] [http://listjanysik.jino-net.ru/text/whirlpool-arc9/ whirlpool arc 4020 ix] [http://tikula.jino-net.ru/data/parole-inno/ parole inno milan] [http://msanutka.jino-net.ru/blog/parco-monza/ parco monza] [http://tainka.jino-net.ru/styles/inei.htm inei] [http://listjanysik.jino-net.ru/text/figlia-e/ figlia e padre] [http://tikula.jino-net.ru/data/guernica-il/ guernica il tema della guerra] [http://traidels.cn/blog/aladinhentai.html Aladin hentai] [http://vera-megastar.jino-net.ru/small/kx-fax.html kx fa55x] [http://msanutka.jino-net.ru/blog/superxxx/ superxxx] [http://msanutka.jino-net.ru/blog/obiettivi-macro5/ obiettivi macro canon] [http://svetlanavt.jino-net.ru/text/hard-disk275.htm hard disk ata] [http://tikula.jino-net.ru/data/video-di140/ video di francesca chillemi] [http://tikula.jino-net.ru/data/tiesse-srl/ tiesse srl] [http://listjanysik.jino-net.ru/text/rsmmc-dual4/ rsmmc dual voltage] [http://fruscianteisgod.jino-net.ru/view/video-tgcom.html video tgcom] [http://traidels.cn/blog/beautyfarmmerano.html Beauty farm merano] [http://fruscianteisgod.jino-net.ru/view/helicopter.html helicopter] [http://svetlanavt.jino-net.ru/text/volkswagen-golf27.htm volkswagen golf 2000] [http://tikula.jino-net.ru/data/bachata-latinos/ bachata latinos] [http://vera-megastar.jino-net.ru/small/danubio-blu.html danubio blu] [http://tainka.jino-net.ru/styles/patricia-kaas1.htm patricia kaas] [http://tainka.jino-net.ru/styles/video-malo.htm video malo de bebe] [http://msanutka.jino-net.ru/blog/video-den/ video den harrow] [http://scruf.cn/downloadpuntatori/ Download puntatori mouse] [http://msanutka.jino-net.ru/blog/sedotti-e/ sedotti e bidonati] [http://svetlanavt.jino-net.ru/text/listino-prezzi6.htm listino prezzi materiale elettrico] [http://vera-megastar.jino-net.ru/small/de-kalb.html de kalb] [http://tainka.jino-net.ru/styles/salvatore-ferragamo3.htm salvatore ferragamo] [http://tikula.jino-net.ru/data/dark-planet/ dark planet] [http://msanutka.jino-net.ru/blog/mi-cuore/ mi cuore] [http://listjanysik.jino-net.ru/text/bobby-pulido/ bobby pulido] [http://svetlanavt.jino-net.ru/text/camicia-sartoriale.htm camicia sartoriale] [http://fruscianteisgod.jino-net.ru/view/assistenza-televisori.html assistenza televisori] [http://tikula.jino-net.ru/data/cerca-i/ cerca i pirati no di questo tempo] [http://tikula.jino-net.ru/data/testo-della79/ testo della canzone di tommy vee] [http://msanutka.jino-net.ru/blog/la-bomba7/ la bomba zucchero] [http://lanadance.jino-net.ru/textools/ textools 10] [http://fruscianteisgod.jino-net.ru/view/linksys-rv.html linksys rv042] [http://msanutka.jino-net.ru/blog/loghi-vettoriali/ loghi vettoriali] [http://vera-megastar.jino-net.ru/small/trucchi-sant.html trucchi sant andreas] [http://vera-megastar.jino-net.ru/small/ricetrasmittente-portatile.html ricetrasmittente portatile accessori] [http://tainka.jino-net.ru/styles/adriana-asti2.htm adriana asti porno] [http://lanadance.jino-net.ru/carleo/ carleo] [http://tainka.jino-net.ru/styles/paola-giacometti.htm paola giacometti] [http://listjanysik.jino-net.ru/text/washandgo/ washandgo 6] [http://svetlanavt.jino-net.ru/text/video-proiettore4.htm video proiettore epson] [http://svetlanavt.jino-net.ru/text/www-anzwer.htm www anzwer net] So wtf does group_string actually do?  The linked "descriptive" post has an utterly unhelpful example.  Has anyone ever used it for anything?
So wtf does group_string actually do?  The linked "descriptive" post has an utterly unhelpful example.  Has anyone ever used it for anything?


Groups a string into a map using a regular expression. To understand the function you must know.
Groups a string into a map using a regular expression. To understand the function you must know.

Revision as of 14:31, 23 October 2007

So wtf does group_string actually do? The linked "descriptive" post has an utterly unhelpful example. Has anyone ever used it for anything?

Groups a string into a map using a regular expression. To understand the function you must know. 1. What maps are and how they are used. 2. Understand what regular expressions are and how to create them.

Using the original post:

FUNCTION DEFINTION: string [int,int] group_string( string source, string regex ) EXAMPLE: string [int,int] test = group_string( "This is a test", "([a-z] ) " );

Example Breakdown: string [int,int] Define a map. Two dimensional. The indices are integers. The data is stored as a string. test Define the map with name test. group_string Call the function. "This is a Test" Feeding the function a sample string. "([a-z] ) " Your regular expression.

Regular expressions deal with pattern matching. You want the function to find a particular pattern. The function then returns that pattern, or the stuff before it, or the stuff after it, or splits them appart, or squeezes them together. So what does this regular expression look for? The Parenthesis (): Tell the function this is a group of characters. [a-z]: Tell us they will be lower case letters.  : Tell us to look for one or more characters. That space between the ) and " Tells us the pattern ends in a space.

Thus reading down the string. T = Does not match [a-z] is a capital letter. h = Matches [a-z]. Starting Group i = Matches [a-z] s = Matches [a-z]

 = Matches space. First group found and is "his "

i = Matches [a-z]. Starting Group s = Matches [a-z]

 = Matches space. Second group found, and is "is "

a = Matches [a-z]. Starting Group

 = Matches space. Third group found, and is "a "

t = Matches [a-z]. Starting Group e = Matches [a-z] s = Matches [a-z] t = Matches [a-z] End of line. No more matches. Stop.

Thus, trusting the post, the map would be:

test[0][0] => "his " test[0][1] => "his" test[1][0] => "is " test[1][1] => "is" test[2][0] => "a " test[2][1] => "a"

I personally haven't used it. Would be used in parsing a page by hand.