Talk:String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>Bale
No edit summary
 
(65 intermediate revisions by 40 users not shown)
Line 1: Line 1:
[http://vivcharenok.ifrance.com/resources/chi-vuol2.htm chi vuol essere milionario gioco] [http://iluvhyperboles.ifrance.com/blog/aifa.html aifa] [http://lunarviolet.ifrance.com/html/home-theater13.html home theater dvd divx] [http://voskovam.ifrance.com/blog/da-hype/ da hype junior jack] [http://sachanasy.ifrance.com/small/dsct-sony/ dsct1 sony fotocamere digitali] [http://lunarviolet.ifrance.com/html/xxxxx.html xxxxx] [http://sachanasy.ifrance.com/small/pioneer-1/ pioneer  dehp5700mp] [http://fleshka500.ifrance.com/content/diritto-civile.html diritto civile federale svizzero] [http://alexeylapshyn.ifrance.com/lib/roma-havana/ roma havana biglietti aerei] [http://condefa.ifrance.com/blog/sd-memory/ sd memory] [http://inilgiz.ifrance.com/web/condizionatori-orieme.htm condizionatori orieme] [http://alexeylapshyn.ifrance.com/lib/maxtor-one6/ maxtor one touch 200] [http://alexeylapshyn.ifrance.com/lib/giro1/ giro] [http://nunuu.ifrance.com/topic/pezzali-max.htm pezzali max] [http://katyuschka.ifrance.com/lib/mivar-tv/ mivar tv 21] [http://svdemo1.ifrance.com/styles/il-ritorno20/ il ritorno di jafar] [http://iluvhyperboles.ifrance.com/blog/el-ab.html el ab] [http://lunarviolet.ifrance.com/html/athlon-24.html athlon 64 fx 939] [http://frantinfo.ifrance.com/content/mama-catalin.htm mama catalin crisan] [http://iluvhyperboles.ifrance.com/blog/soluzione-obscure.html soluzione obscure xbox] [http://sachanasy.ifrance.com/small/the-house1/ the house of the death] [http://kimber1337.ifrance.com/html/decapitazione-ford/ decapitazione ford] [http://kimber1337.ifrance.com/html/nutrienti-sport/ nutrienti sport e fitness] [http://kimber1337.ifrance.com/html/diffusore-centrali/ diffusore centrali surround] [http://scragtime.ifrance.com/blog/elaba-ramalho/ elaba ramalho] [http://iluvhyperboles.ifrance.com/blog/mercedes-ml10.html mercedes ml 400 cdi 2002] [http://manivid.ifrance.com/content/batterie-v1/ batterie 9v] [http://alexeylapshyn.ifrance.com/lib/ooak-barbie/ ooak barbie] [http://vovaxpl.ifrance.com/nike-lettori.html nike lettori mp3] [http://condefa.ifrance.com/blog/umo-e/ umo e donna che fanno sesso] [http://alena95.ifrance.com/resources/nino-ferrer.htm nino ferrer agata] [http://cabbymae.ifrance.com/library/nokia-mp/ nokia mp3] [http://condefa.ifrance.com/blog/clubprive-abruzzo/ clubprive abruzzo] [http://kimber1337.ifrance.com/html/traumas-sexuales/ traumas sexuales] [http://frantinfo.ifrance.com/content/gung-ho.htm gung ho] [http://iluvhyperboles.ifrance.com/blog/canon-ef35.html canon ef 28mm f 1 8 usm lens 28 mm] [http://vovaxpl.ifrance.com/fiat-punto53.html fiat punto diesel multijet km 0] [http://nastiapanchenko.ifrance.com/testimonial.html testimonial] [http://vivcharenok.ifrance.com/resources/donne-over2.htm donne over 40] [http://vivcharenok.ifrance.com/resources/betoniere.htm betoniere] [http://elephanto.ifrance.com/larry-semon/ larry semon] [http://inilgiz.ifrance.com/web/aken-piet.htm aken piet van] [http://scragtime.ifrance.com/blog/assicurazione-gallipoli/ assicurazione gallipoli] [http://kimber1337.ifrance.com/html/amplificatore-home2/ amplificatore home teathre] [http://svdemo1.ifrance.com/styles/selphy-cp2/ selphy cp 400] [http://vivcharenok.ifrance.com/resources/franco-de1.htm franco de vita] [http://iluvhyperboles.ifrance.com/blog/lisa-scot.html lisa scot lee] [http://alexeylapshyn.ifrance.com/lib/ricette-per1/ ricette per l estate] [http://vivcharenok.ifrance.com/resources/km-bmw11.htm km0 bmw x5 auto km 0] [http://vivcharenok.ifrance.com/resources/charisma-carpenter.htm charisma carpenter] [http://voskovam.ifrance.com/blog/modelle-e/ modelle e cubiste] [http://lunarviolet.ifrance.com/html/disegni-per3.html disegni per tessuto jacquard] [http://kimber1337.ifrance.com/html/inno-brigata2/ inno brigata sassari da scaricare gratis] [http://frantinfo.ifrance.com/content/schede-video18.htm schede video bus pci] [http://nastiapanchenko.ifrance.com/lodita.html lodita] [http://vovaxpl.ifrance.com/bluetoth.html bluetoth] [http://nastiapanchenko.ifrance.com/memoria-ddr8.html memoria ddr2400] [http://scragtime.ifrance.com/blog/testo-r/ testo r traduzione di fuck it] [http://lenka19.ifrance.com/description/assicurazione-somma.html assicurazione somma lombardo] [http://iluvhyperboles.ifrance.com/blog/add-link1.html add link seno] [http://elephanto.ifrance.com/costantino-e1/ costantino e alessandra novita] [http://inilgiz.ifrance.com/web/bobbi-solo.htm bobbi solo] [http://jamaisvuredux.ifrance.com/content/www-bticino1.html www bticino com] [http://elephanto.ifrance.com/plantronics/ plantronics 510] [http://nunuu.ifrance.com/topic/norton-utilities.htm norton utilities] [http://elephanto.ifrance.com/vnv-nation/ vnv nation pastperfect] [http://lenka19.ifrance.com/description/voli-bra.html voli bra] [http://nastiapanchenko.ifrance.com/pali-cameretta.html pali cameretta flower] [http://elephanto.ifrance.com/posizionamento-testa/ posizionamento testa motore ricerca] [http://scragtime.ifrance.com/blog/carta-di1/ carta di credito] [http://notquiteyoda.ifrance.com/www-eljah.htm www eljah wood de] [http://vivcharenok.ifrance.com/resources/uomo-nudo.htm uomo nudo gratis] [http://inilgiz.ifrance.com/web/iscrizione-per.htm iscrizione per concorso oss forli] [http://voskovam.ifrance.com/blog/Amateur-facials1/ amateur facials] [http://voskovam.ifrance.com/blog/processore-athlon1/ processore athlon 64] [http://fleshka500.ifrance.com/content/prezioso-feat2.html prezioso feat] [http://jamaisvuredux.ifrance.com/content/carlos-anacondia.html carlos anacondia] [http://vovaxpl.ifrance.com/giochi-in6.html giochi in cui vesti le persone] [http://nastiapanchenko.ifrance.com/jak-zapomniec.html jak zapomniec free mp3] [http://lodkencia.ifrance.com/web/nobody-knows/ nobody knows me] [http://lenka19.ifrance.com/description/troie-borghese.html troie borghese] [http://vivcharenok.ifrance.com/resources/timon-e.htm timon e pumbaa] [http://sachanasy.ifrance.com/small/concorso-lineablu/ concorso lineablu rai it] [http://iluvhyperboles.ifrance.com/blog/b-w14.html b w asw675] [http://fleshka500.ifrance.com/content/san-potito.html san potito ultra] [http://fleshka500.ifrance.com/content/ricambi-lambretta.html ricambi lambretta] [http://elephanto.ifrance.com/cd-good/ cd good charlotte] [http://alena95.ifrance.com/resources/deslandres-henri.htm deslandres henri alexandre] [http://scragtime.ifrance.com/blog/last-minute17/ last minute mauritius] [http://vivcharenok.ifrance.com/resources/c-owen.htm c owen] [http://frantinfo.ifrance.com/content/la-boomba.htm la boomba] [http://notquiteyoda.ifrance.com/ravensburger.htm ravensburger] [http://nastiapanchenko.ifrance.com/difendi-il.html difendi il castello] [http://lenka19.ifrance.com/description/moto-raduni.html moto raduni] [http://voskovam.ifrance.com/blog/extreme-n/ extreme n6600 silencer] [http://voskovam.ifrance.com/blog/onomichi/ onomichi] [http://iluvhyperboles.ifrance.com/blog/kuala-lumpur.html kuala lumpur ristorante] [http://jamaisvuredux.ifrance.com/content/viaggio-corsica.html viaggio corsica] [http://alexeylapshyn.ifrance.com/lib/little-nicky/ little nicky  un diavolo a manhattan] [http://nunuu.ifrance.com/topic/james-brown1.htm james brown] [http://xobitips.5gbfree.com/new/giorgio-almirante/ giorgio almirante] [http://jziloh.12gbfree.com/i-wonder/ i wonder] [http://lonely-doll.idilis.ro/web/seni-prosperosi/ seni prosperosi] [http://feelosof.netfirms.com/jere/ jere] [http://xobitips.5gbfree.com/new/liguria-annuncio/ liguria annuncio vendita] [http://iamskinhead.idilis.ro/resources/l-rossi.html l rossi fasciatoio] [http://jziloh.12gbfree.com/kinkyman/ kinkyman] [http://xobitips.5gbfree.com/new/decapitato-ostaggio/ decapitato ostaggio usa] [http://jziloh.12gbfree.com/elisa-broken/ elisa broken] [http://reptilian-lace.netfirms.com/content/dolby-prologic/ dolby prologic] [http://vla5.netfirms.com/web/nager-khan.htm nager khan] [http://vla5.netfirms.com/web/ultras-sampdoria.htm ultras sampdoria] [http://cry-tomorrow.netfirms.com/topic/av2.html av 400] [http://videlais.netfirms.com/new/software-per7.htm software per album foto] [http://xobitips.5gbfree.com/new/coleman-charles/ coleman charles] [http://lynnemicur.idilis.ro/blog/televisori-ddt/ televisori ddt integrato] [http://reptilian-lace.netfirms.com/content/ti-voglio10/ ti voglio bene ferro] [http://xobitips.5gbfree.com/new/www-porta/ www porta portese on line it] [http://kerasnic.at.tut.by/content/sony-dsc33.htm sony dsc h1 sony] [http://videlais.netfirms.com/new/societa-pulman.htm societa pulman a milano] [http://jziloh.12gbfree.com/math-games/ math games] [http://jziloh.12gbfree.com/i-segreti/ i segreti di twin peaks] [http://cry-tomorrow.netfirms.com/topic/inno-polonia.html inno polonia] [http://www.psyhautopsy.as.ro/web/lan-modem/ lan modem router] [http://lonely-doll.idilis.ro/web/imam-ali/ imam ali] [http://feelosof.netfirms.com/bu-key/ b4u key] [http://viaggiatore87.idilis.ro/description/televisore-sony/ televisore sony 28] [http://www.ahrorchik55.as.ro/description/yo-zo.htm yo zo] [http://vla5.netfirms.com/web/sud-est3.htm sud est clipe] [http://xobitips.5gbfree.com/new/canberra-patto/ canberra patto di] [http://jziloh.12gbfree.com/scarpe-gabbana/ scarpe gabbana] [http://jziloh.12gbfree.com/gaudio/ gaudio] [http://www.karvero206.as.ro/description/cuffie-a.htm cuffie a radiofrequenza] [http://www.marianuwed.as.ro/topic/le-visite.htm le visite del presidente] [http://www.karvero206.as.ro/description/cuccia-cane.htm cuccia cane pastore tedesco] [http://www.marianuwed.as.ro/topic/polar-s2.htm polar s 725] [http://reptilian-lace.netfirms.com/content/sanremo10/ sanremo2002] [http://jziloh.12gbfree.com/campeggio-ferrino/ campeggio ferrino] [http://jziloh.12gbfree.com/crespi-g/ crespi g  figli srl] [http://jziloh.12gbfree.com/orari-treni/ orari treni sncf] [http://jziloh.12gbfree.com/esco-fuori/ esco fuori dal tunnell] [http://xobitips.5gbfree.com/new/blue-mary/ blue mary] [http://www.karvero206.as.ro/description/www-sport1.htm www sport regione it] [http://jziloh.12gbfree.com/le-finte/ le finte bionde] [http://xobitips.5gbfree.com/new/antenna-magnetica/ antenna magnetica] [http://jziloh.12gbfree.com/dac/ dac 3] [http://slaider2005.idilis.ro/content/biglietto-augurio24/ biglietto augurio bambino] [http://jcarino.netfirms.com/zipgenius.htm zipgenius] [http://lynnemicur.idilis.ro/blog/tavolo-ping5/ tavolo ping pong chiodi] [http://listkolobok11.idilis.ro/toto-vittorio.html toto vittorio e la dottoressa] [http://jcarino.netfirms.com/bekham.htm bekham] [http://www.ahrorchik55.as.ro/description/canon-powershot11.htm canon powershot 1] [http://www.psyhautopsy.as.ro/web/royal-canine2/ royal canine mini] [http://jziloh.12gbfree.com/stampante-multifunzione/ stampante multifunzione copiatrice] [http://cry-tomorrow.netfirms.com/topic/isdn-modem2.html isdn modem] [http://lynnemicur.idilis.ro/blog/calendario-elisa/ calendario elisa triani] [http://lonely-doll.idilis.ro/web/hit-parade1/ hit parade italia singoli] [http://jziloh.12gbfree.com/roberto-cavalli/ roberto cavalli calzature donna] [http://www.marianuwed.as.ro/topic/harleydavidson-.htm harleydavidson 883 moto] [http://www.psyhautopsy.as.ro/web/istituto-sei/ istituto sei] [http://jcarino.netfirms.com/computercity-hw.htm computercity hw] [http://xobitips.5gbfree.com/new/povera-patria/ povera patria] [http://viaggiatore87.idilis.ro/description/la-necrofila/ la necrofila] [http://jziloh.12gbfree.com/eko-fresh/ eko fresh] [http://lynnemicur.idilis.ro/blog/forno-3/ forno 90 gas] [http://feelosof.netfirms.com/gatto-silvestro/ gatto silvestro] [http://jcarino.netfirms.com/sofi-marinova.htm sofi marinova] [http://xobitips.5gbfree.com/new/vista-casa/ vista casa] [http://ruchka-666.idilis.ro/web/fotos-nu.htm fotos nu gls transa] [http://willowing.idilis.ro/new/casio-lcd.html casio lcd] [http://jziloh.12gbfree.com/luciodalla/ luciodalla] [http://jziloh.12gbfree.com/baustelle-love/ baustelle love affair] [http://lonely-doll.idilis.ro/web/athlon-10/ athlon 64 3 ghz] [http://vla5.netfirms.com/web/i-cuccioli.htm i cuccioli cani] [http://willowing.idilis.ro/new/drweca.html drweca] [http://jcarino.netfirms.com/stand-out.htm stand out] [http://lynnemicur.idilis.ro/blog/litanie-lauretane/ litanie lauretane] [http://www.psyhautopsy.as.ro/web/logitech-24/ logitech  mouse mx700] [http://www.ahrorchik55.as.ro/description/nba-.htm nba 2005 xbox] [http://lonely-doll.idilis.ro/web/ruky/ ruky] [http://www.karvero206.as.ro/description/belkin-scheda.htm belkin scheda pcmcia wireless] [http://www.marianuwed.as.ro/topic/tutte-le9.htm tutte le facolta di psicologia] [http://aimer-16.idilis.ro/styles/il-vampiro1.html il vampiro dellisola] [http://www.karvero206.as.ro/description/kodaira.htm kodaira] [http://jziloh.12gbfree.com/la-schiava/ la schiava di bagdad] [http://listmonstrik20.idilis.ro/missouri-indians.htm missouri indians] [http://www.psyhautopsy.as.ro/web/escaleras-al/ escaleras al cielo] [http://aimer-16.idilis.ro/styles/anti-cellulite.html anti cellulite] [http://www.ahrorchik55.as.ro/description/foto-sposi.htm foto sposi] [http://reptilian-lace.netfirms.com/content/antonello-venditti1/ antonello venditti da san siro a samarcanda] [http://aimer-16.idilis.ro/styles/toxic-britney.html toxic britney spear] [http://willowing.idilis.ro/new/hotel-villaggio2.html hotel villaggio s antonio] [http://iamskinhead.idilis.ro/resources/bratz-sulla.html bratz sulla neve] [http://reptilian-lace.netfirms.com/content/volo-napoli1/ volo napoli sharm el sheikh] [http://jziloh.12gbfree.com/yentl/ yentl] [http://lynnemicur.idilis.ro/blog/giornali-atrapani/ giornali atrapani] [http://jziloh.12gbfree.com/dlink/ dlink 904] [http://lonely-doll.idilis.ro/web/fankie/ fankie] [http://www.psyhautopsy.as.ro/web/giochi-divertenti/ giochi divertenti e nuovi] [http://www.ahrorchik55.as.ro/description/midi-linea.htm midi linea 77] [http://sklyova.jino-net.ru/lib/tendone-sagra/ tendone sagra] [http://videomelitatoniolo.priekles.cn/ Video melita toniolo] [http://shutns.cn/index0_666.html home] [http://seamylife.cn/ url] [http://allinternal.priekles.cn/ Allinternal] [http://uovodicioccolato.panergs.cn/ Uovo di cioccolato] [http://rolexprezzi.jutty.cn/ Rolex prezzi] [http://siticonalfabeti.priekles.cn/ Siti con alfabeti glitterati] [http://melissanuda.zialas.cn/ Melissa nuda] [http://seamylife.cn/index8_250.html homepage] [http://tetteamatoriali.labio.cn/ Tette amatoriali] [http://fotomaturegratis.guiltus.cn/ Foto mature gratis] [http://cartinafisicadel.jutty.cn/ Cartina fisica del messico] [http://wwwvereporche.thewester.cn/ Www vereporche com] [http://conselation.jino-net.ru/graduatoria-vfb3.html graduatoria vfb 3 bando] [http://raccontidipissing.seamylife.cn/ Racconti di pissing] [http://rassodamento.seamylife.cn/ Rassodamento gluteo esercizio] [http://oroscopigemelli.opinjion.cn/ Oroscopi gemelli] [http://rassodamento.priekles.cn/ Rassodamento gluteo esercizio] [http://ziamaiala.guiltus.cn/ Zia maiala] [http://racconticonincesto.shutns.cn/ Racconti con incesto] [http://traduzionetedesco.labio.cn/ Traduzione tedesco gratis] [http://raccontipornografici.thewester.cn/ Racconti pornografici] [http://lexingtonsteele.opinjion.cn/ Lexington steele] [http://videohardmature.opinjion.cn/ Video hard mature] [http://labio.cn/index8_250.html homepage] [http://nikitadenise.priekles.cn/ Nikita denise] [http://pthc.thewester.cn/ Pthc] [http://tabellaassegni.priekles.cn/ Tabella assegni familiari] [http://pornoit.seamylife.cn/ Pornoit] [http://troienude.labio.cn/ Troie nude] [http://seamylife.cn/index7_666.html homepage] [http://terrisummers.panergs.cn/ Terri summers fuck] [http://radiofreccia.shutns.cn/ Radio freccia] [http://conselation.jino-net.ru/lost-magic.html lost magic filmato su nintendo ds] [http://cortomaltese.guiltus.cn/ Corto maltese gruppo musicale] [http://lsdreamsmagazine.panergs.cn/ Ls dreams magazine] [http://conselation.jino-net.ru/sera-tuscania.html sera tuscania] [http://seamylife.cn/index1_666.html url] [http://conselation.jino-net.ru/loop-recorder.html loop recorder] [http://monsterdildo.jutty.cn/ Monster dildo] [http://ftvgirls.jutty.cn/ Ftv girls] [http://conselation.jino-net.ru/uja.html uja] [http://manelenoi2007.jutty.cn/ Manele noi 2007] [http://keysat.guiltus.cn/ Key sat] [http://pissinggirls.shutns.cn/ Pissing girls] [http://freevideoxxx.zialas.cn/ Free videoxxx] [http://wwwpornoyoutube.zialas.cn/ Www pornoyoutube com] [http://wwwsanpaolobanco.opinjion.cn/ Www san paolo banco di napoli it] [http://conselation.jino-net.ru/copertina-ultimo1.html copertina ultimo album biagio antonacci] [http://sklyova.jino-net.ru/lib/midi-italiani3/ midi italiani 2004] [http://tetteorientali.thewester.cn/ Tette orientali] [http://videomaschinudi.seamylife.cn/ Video maschi nudi] [http://carrellotrasporto.zialas.cn/ Carrello trasporto moto] [http://jutty.cn/index2_666.html index] [http://sklyova.jino-net.ru/lib/caccia-al10/ caccia al cinghiale] [http://conselation.jino-net.ru/a-chi9.html a chi ti dice] [http://hairypussy.shutns.cn/ Hairy pussy] [http://angel-of-dead.jino-net.ru/view/moser-friedrich.htm moser friedrich karl] [http://documentopassaporto.jutty.cn/ Documento passaporto] [http://corniciperpergamene.priekles.cn/ Cornici per pergamene] [http://cliphunter.jutty.cn/ Cliphunter] [http://clito.shutns.cn/ Clito] [http://jutty.cn/index2_666.html index] [http://seamylife.cn/index6_666.html home] [http://donnemoreporche.thewester.cn/ Donne more porche] [http://ristoranteago.labio.cn/ Ristorante ago miami beach] [http://fonderiabronzo.jutty.cn/ Fonderia bronzo] [http://sklyova.jino-net.ru/lib/guerra-di8/ guerra di donne] [http://trofeoberlusconi.thewester.cn/ Trofeo berlusconi biglietti] [http://panergs.cn/ panergs.cn] [http://angel-of-dead.jino-net.ru/view/foppapedretti-ferri.htm foppapedretti ferri da stiro] [http://ancancora.jutty.cn/ Ancancora] [http://jutty.cn/index5_250.html page] [http://repubblicasudoku.priekles.cn/ Repubblica sudoku] [http://messageroveneto.guiltus.cn/ Messagero veneto] [http://virgilioeros.priekles.cn/ Virgilio eros] [http://wwwvideoporno.zialas.cn/ Www video porno sex it] [http://angel-of-dead.jino-net.ru/view/osito-peluche.htm osito peluche] [http://msnporno.shutns.cn/ Msn porno] [http://raccontitransessuali.labio.cn/ Racconti transessuali] [http://pompininere.thewester.cn/ Pompini nere] [http://dpfanatics.labio.cn/ Dpfanatics] [http://fichebionde.seamylife.cn/ Fiche bionde] [http://sklyova.jino-net.ru/lib/luigi-and/ luigi and mario] [http://gayselfsuck.shutns.cn/ Gay self suck] [http://wwwfotopornoit.seamylife.cn/ Www foto porno it] [http://vanessablue.seamylife.cn/ Vanessa blue] [http://casalingheannoiate.opinjion.cn/ Casalinghe annoiate] [http://telegrammitelecom.labio.cn/ Telegrammi telecom] [http://tricicloberchet.jutty.cn/ Triciclo berchet] [http://conselation.jino-net.ru/w-6.html w 3365 wps miele] [http://conselation.jino-net.ru/waill.html waill] [http://fighepiccole.thewester.cn/ Fighe piccole] [http://culibellissimi.thewester.cn/ Culi bellissimi] [http://videozoccole.guiltus.cn/ Video zoccole] [http://tatuaggiceltici.jutty.cn/ Tatuaggi celtici] [http://videoscopateamatoriali.labio.cn/ Video scopate amatoriali] [http://wwwdiddlit.jutty.cn/ Www diddl it] [http://frasiglitteramore.shutns.cn/ Frasi glitter amore] [http://scruffytom.50webs.com/topic/boys-roma1.html boys roma ultras 1972] [http://insomniashe.50webs.com/data/putas-en1/ putas en vivo] [http://deeahblita.50webs.com/il-capitale/ il capitale intellettuale profili di] [http://poetofdreams.50webs.com/blog/nives-ce
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.
 
 
== Regular expressions ==
 
Finally! As of this moment, every single function has a page on this wiki except for the regular expression functions. ''(Much cheering!)'' Part of the problem with making pages for them is that a whole ream of background information is necessary to use them. I can see several approaches that we can take to this. I hope that we can discuss which tact to take:
#Create a new category and page for regular expressions where we discuss how to use them in detail.
#At the top of the Regular expressions section on this page, we post a link to another site that discusses how to use them. Obviously this is easiest. Then we assume that information is understood by the reader.
#* http://www.regular-expressions.info/
#* http://java.sun.com/docs/books/tutorial/essential/regex/index.html
#Assume information about the nature of regular expressions and how to use regular expression functions is both known and just discuss the specifics of each function.
Personally, I favor creating a page for regular expressions which starts with a link to a site that explains how to create regular expressions. Then the page explains how they can be used in ash.
--[[User:Bale|Bale]] 10:01, 6 May 2010 (UTC)
 
I'm leaning toward not adding in another category on the main page; it's getting cluttered as-is. However, I'm 100% the idea of linking to a dedicated page with more info & links. For the user comfortable with regex, they can go to the strings page and just follow links. For others, they can go to the regex page first. However, I'm not a programmer, so I don't know if most would consider regex to be a sub-set of string handling, or its own category. I'd go by whatever is considered "standard" for that.
 
If we go with complete separation, I'd probably want to have a link to said page on the string handling page, and perhaps not even include it on the Main Page. I dunno. Honestly, I'm fine leaving this to whoever feels comfortable enough with regex to add said function pages.
 
Whichever approach is taken, I agree that we shouldn't include all of the background info on each page. Matche(r)s, groups, etc. should be briefly defined on their specific pages, but otherwise left to a general description page or assumed to be known with references provided (on the category / sub-category page). Explaining each concept on every page is a bit absurd. (It would be like giving a definition of string on every function page that accepts a parameter of or returns a string; we have other "general info" pages for this reason.)
 
Also, congrats & thanks on reaching this major milestone! --[[User:StDoodle|StDoodle (#1059825)]] 15:48, 6 May 2010 (UTC)
 
* Good points. Regexp are a subset of string handling so we can keep them on that page, but link to a page of regexp information at the top of the regexp page. If we decide to have regexp information on this site. That would be a pretty good solution. How much detail should we go into on the regexp page? Just basic information and a few links for the user to learn more? Or just assume that they are understood as well as string? --[[User:Bale|Bale]] 21:11, 6 May 2010 (UTC)
 
 
The way you're currently going with is is a.o.k. by me. I wouldn't add too much to the dedicated page; I'd prefer additional tutorials & reference material to "original" content, for the most part. Mostly 'cause I see people fitting into the following groups re: regex;
* Those who will never get it; it doesn't matter what we do for this group
* Those who already get it; again, doesn't matter what we do
* Those who are capable of getting it, given adequate info
** Adequate is, for the most of people in this category, going to be far more than we really want to get in to (I know some people who are very comfortable with regex who STILL keep a cheat-cheat or bookmark for some stuff)
** I don't want to spend 1k wiki-hours (that's an official metric now, dontchaknow?) on stuff that's been done well elsewhere when there's a lot of mafia (non-ash) stuff left to document; priorities, bang-for-your-buck, etc.
 
So yeah, keep up what you're doing basically. Flesh out quick coverage of the basics on the Regex page, add more links if you find ones that may also be helpful, but beyond that, don't worry too much about it. --[[User:StDoodle|StDoodle (#1059825)]] 04:09, 7 May 2010 (UTC)
 
Edit to add:
 
There is one minor additional note. As you note on the Regex page & I've seen elsewhere, ash regex is just a wrapper for java regex. As such, there's absolutely no reason to cover the same ground (I'm fairly sure java has better documentation resources than mafia :P ) EXCEPT it might be nice to give some "advanced info" that points out exactly how the ash equivalents map to their java counterparts. This isn't high-priority, but is the only thing beyond links and very basic coverage that I can see being worthwhile. --[[User:StDoodle|StDoodle (#1059825)]] 04:12, 7 May 2010 (UTC)
 
Do you think I'm adding too much detail? Should I trim back and rely on off-site tutorials? I think you can see right now about how much of a skim through regexes I'm planning to do. Should I skip it? --[[User:Bale|Bale]] 04:37, 7 May 2010 (UTC)
 
Well, first and foremost, don't worry a whole lot about having too much info, as long as it's accurate. I'm just saying that at the point that it stops flowing naturally and you have to stop and think hard about it, skim over the rest and point to tutorials. If the biggest flaw in this wiki ends up being that it duplicates information that can be learned elsewhere, I'll be able to live with that. --[[User:StDoodle|StDoodle (#1059825)]] 06:17, 7 May 2010 (UTC)
* LOL! Very philosophical of you. ^_^ --[[User:Bale|Bale]] 06:40, 7 May 2010 (UTC)

Latest revision as of 06:40, 7 May 2010

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.


Regular expressions

Finally! As of this moment, every single function has a page on this wiki except for the regular expression functions. (Much cheering!) Part of the problem with making pages for them is that a whole ream of background information is necessary to use them. I can see several approaches that we can take to this. I hope that we can discuss which tact to take:

  1. Create a new category and page for regular expressions where we discuss how to use them in detail.
  2. At the top of the Regular expressions section on this page, we post a link to another site that discusses how to use them. Obviously this is easiest. Then we assume that information is understood by the reader.
  3. Assume information about the nature of regular expressions and how to use regular expression functions is both known and just discuss the specifics of each function.

Personally, I favor creating a page for regular expressions which starts with a link to a site that explains how to create regular expressions. Then the page explains how they can be used in ash. --Bale 10:01, 6 May 2010 (UTC)

I'm leaning toward not adding in another category on the main page; it's getting cluttered as-is. However, I'm 100% the idea of linking to a dedicated page with more info & links. For the user comfortable with regex, they can go to the strings page and just follow links. For others, they can go to the regex page first. However, I'm not a programmer, so I don't know if most would consider regex to be a sub-set of string handling, or its own category. I'd go by whatever is considered "standard" for that.

If we go with complete separation, I'd probably want to have a link to said page on the string handling page, and perhaps not even include it on the Main Page. I dunno. Honestly, I'm fine leaving this to whoever feels comfortable enough with regex to add said function pages.

Whichever approach is taken, I agree that we shouldn't include all of the background info on each page. Matche(r)s, groups, etc. should be briefly defined on their specific pages, but otherwise left to a general description page or assumed to be known with references provided (on the category / sub-category page). Explaining each concept on every page is a bit absurd. (It would be like giving a definition of string on every function page that accepts a parameter of or returns a string; we have other "general info" pages for this reason.)

Also, congrats & thanks on reaching this major milestone! --StDoodle (#1059825) 15:48, 6 May 2010 (UTC)

  • Good points. Regexp are a subset of string handling so we can keep them on that page, but link to a page of regexp information at the top of the regexp page. If we decide to have regexp information on this site. That would be a pretty good solution. How much detail should we go into on the regexp page? Just basic information and a few links for the user to learn more? Or just assume that they are understood as well as string? --Bale 21:11, 6 May 2010 (UTC)


The way you're currently going with is is a.o.k. by me. I wouldn't add too much to the dedicated page; I'd prefer additional tutorials & reference material to "original" content, for the most part. Mostly 'cause I see people fitting into the following groups re: regex;

  • Those who will never get it; it doesn't matter what we do for this group
  • Those who already get it; again, doesn't matter what we do
  • Those who are capable of getting it, given adequate info
    • Adequate is, for the most of people in this category, going to be far more than we really want to get in to (I know some people who are very comfortable with regex who STILL keep a cheat-cheat or bookmark for some stuff)
    • I don't want to spend 1k wiki-hours (that's an official metric now, dontchaknow?) on stuff that's been done well elsewhere when there's a lot of mafia (non-ash) stuff left to document; priorities, bang-for-your-buck, etc.

So yeah, keep up what you're doing basically. Flesh out quick coverage of the basics on the Regex page, add more links if you find ones that may also be helpful, but beyond that, don't worry too much about it. --StDoodle (#1059825) 04:09, 7 May 2010 (UTC)

Edit to add:

There is one minor additional note. As you note on the Regex page & I've seen elsewhere, ash regex is just a wrapper for java regex. As such, there's absolutely no reason to cover the same ground (I'm fairly sure java has better documentation resources than mafia :P ) EXCEPT it might be nice to give some "advanced info" that points out exactly how the ash equivalents map to their java counterparts. This isn't high-priority, but is the only thing beyond links and very basic coverage that I can see being worthwhile. --StDoodle (#1059825) 04:12, 7 May 2010 (UTC)

Do you think I'm adding too much detail? Should I trim back and rely on off-site tutorials? I think you can see right now about how much of a skim through regexes I'm planning to do. Should I skip it? --Bale 04:37, 7 May 2010 (UTC)

Well, first and foremost, don't worry a whole lot about having too much info, as long as it's accurate. I'm just saying that at the point that it stops flowing naturally and you have to stop and think hard about it, skim over the rest and point to tutorials. If the biggest flaw in this wiki ends up being that it duplicates information that can be learned elsewhere, I'll be able to live with that. --StDoodle (#1059825) 06:17, 7 May 2010 (UTC)

  • LOL! Very philosophical of you. ^_^ --Bale 06:40, 7 May 2010 (UTC)