Talk:String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
So wtf does group_string actually do?  The linked "descriptive" post has an utterly unhelpful example.  Has anyone ever used it for anything?
[http://lovereceier.ifrance.com/lib/visual-studio.htm visual studio net 2003 professional] [http://speedofsoun.ifrance.com/text/directory/konica-minolta.htm konica minolta pagepro 1250w] [http://noxuhax.ifrance.com/content/view/gstring-sexy.htm gstring sexy] [http://kalian42.ifrance.com/text/directory/www-nawaiwaqt/ www nawaiwaqt com pk] [http://noxuhax.ifrance.com/content/view/king-outdoor.htm king outdoor store materassino] [http://igaros.ifrance.com/lib/www-zucchero/ www zucchero tour roma 2004] [http://voltia.ifrance.com/content/view/demolizioni-varese.htm demolizioni varese] [http://tizolaa.ifrance.com/web/classe-aa/ classe aa condizionatori fissi] [http://tat-ooin.ifrance.com/resources/articles/retino-piscine.htm retino piscine] [http://noxuhax.ifrance.com/content/view/crociera-lavoro.htm crociera lavoro] [http://akmokanzen.ifrance.com/images/small/virgin-airline.htm virgin airline] [http://speedofsoun.ifrance.com/text/directory/pianta-di.htm pianta di firenze] [http://demurediablo.ifrance.com/library/html/video-gratis/ video gratis di selen e rocco siffredi] [http://singaporepets.ifrance.com/library/html/elmi.htm elmi] [http://yeeden.ifrance.com/img/styles/ati-radeon/ ati radeon 32mb] [http://oiyaoi.ifrance.com/images/small/hotel-a/ hotel a tenerife las dalias] [http://akmokanzen.ifrance.com/images/small/pc-pentium.htm pc pentium 4 3 2] [http://deviantrus.ifrance.com/topic/globus-ionoforesi/ globus ionoforesi] [http://voltia.ifrance.com/content/view/memorie-ram.htm memorie ram ddr 266 pc2100] [http://jdawsona.ifrance.com/data/free-italia/ free italia sex] [http://broadwaylili.ifrance.com/content/view/testo-verdena.htm testo verdena luna] [http://tat-ooin.ifrance.com/resources/articles/color-service.htm color service srl torino] [http://igaros.ifrance.com/lib/chat-gartuito/ chat gartuito conversaciones] [http://kalian42.ifrance.com/text/directory/livin-on/ livin on the edge] [http://oiyaoi.ifrance.com/images/small/agriturismo-senigallia/ agriturismo senigallia] [http://yeeden.ifrance.com/img/styles/felpa-sport/ felpa sport donna abbigliamento sportivo] [http://oiyaoi.ifrance.com/images/small/the-mummy/ the mummy] [http://noxuhax.ifrance.com/content/view/il-gamecube.htm il gamecube si puo modificare] [http://lordsander.ifrance.com/topic/mf-toner.htm mf3110 toner] [http://tat-ooin.ifrance.com/resources/articles/michel.htm michel] [http://highbulp.ifrance.com/images/small/everytime-di/ everytime di britney spaers] [http://kalian42.ifrance.com/text/directory/saldatrici/ saldatrici] [http://igaros.ifrance.com/lib/second-me/ second me] [http://singaporepets.ifrance.com/library/html/foto-di.htm foto di ragazze obese] [http://voltia.ifrance.com/content/view/gel-unghie.htm gel unghie] [http://yeeden.ifrance.com/img/styles/bmw-/ bmw 725 tds 1999] [http://lovereceier.ifrance.com/lib/dfi-lanparty.htm dfi lanparty ut nf4 ultra-d] [http://akmokanzen.ifrance.com/images/small/mensole-per.htm mensole per camerette] [http://speedofsoun.ifrance.com/text/directory/video-sesso.htm video sesso con animali] [http://tizolaa.ifrance.com/web/rosa-passos/ rosa passos] [http://kalian42.ifrance.com/text/directory/tutti-giu/ tutti giu per terra giuseppe culicchia] [http://singaporepets.ifrance.com/library/html/faith-hill.htm faith hill. when the lights go down] [http://kalian42.ifrance.com/text/directory/sixy-pinay/ sixy pinay com] [http://deviantrus.ifrance.com/topic/flettner-anton/ flettner, anton] [http://lovereceier.ifrance.com/lib/c-era.htm c era un ragazzo gianni morandi] [http://oiyaoi.ifrance.com/images/small/pacew/ pacew] [http://kalian42.ifrance.com/text/directory/sancamaleon/ sancamaleon] [http://jdawsona.ifrance.com/data/samsung-/ samsung 710 tv 17] [http://kalian42.ifrance.com/text/directory/mutu-hard/ mutu hard] [http://noxuhax.ifrance.com/content/view/frasi-d.htm frasi d auguri di compleanno] [http://yeeden.ifrance.com/img/styles/virtual-dj/ virtual dj 1 08] [http://jdawsona.ifrance.com/data/tastiera-mouse/ tastiera mouse ottico wireless] [http://igaros.ifrance.com/lib/vancouver-isola/ vancouver (isola)] [http://highbulp.ifrance.com/images/small/vacanza-in/ vacanza in villaggio] [http://broadwaylili.ifrance.com/content/view/pioneer-dcs.htm pioneer dcs 535] [http://voltia.ifrance.com/content/view/lavina.htm lavina] [http://tat-ooin.ifrance.com/resources/articles/media-center.htm media center cdc] [http://lovereceier.ifrance.com/lib/guaine-a.htm guaine a spruzzo] [http://lovereceier.ifrance.com/lib/overdrive-katy.htm overdrive katy rose] [http://jdawsona.ifrance.com/data/batteria-wireless/ batteria wireless vari accessori] [http://lovereceier.ifrance.com/lib/king-arthur.htm king arthur film dvd] [http://highbulp.ifrance.com/images/small/tihert/ tihert] [http://singaporepets.ifrance.com/library/html/metal-slug.htm metal slug  00] [http://yeeden.ifrance.com/img/styles/seggiolino-da/ seggiolino da auto] [http://tizolaa.ifrance.com/web/supernatural/ supernatural] [http://toofarfrommaybe.ifrance.com/view/new/new-carmina/ new carmina burana] [http://singaporepets.ifrance.com/library/html/cam-porn.htm cam porn] [http://kalian42.ifrance.com/text/directory/la-storia/ la storia nel medioevo] [http://lordsander.ifrance.com/topic/fever-michel.htm fever michel buble] [http://tat-ooin.ifrance.com/resources/articles/mpio-fl.htm mpio fl] [http://singaporepets.ifrance.com/library/html/quiereme-besame.htm quiereme besame] [http://igaros.ifrance.com/lib/raf/ raf 2004] [http://broadwaylili.ifrance.com/content/view/uomini-sulla.htm uomini sulla luna] [http://highbulp.ifrance.com/images/small/cartuccia-ink/ cartuccia ink jet compatibile] [http://demurediablo.ifrance.com/library/html/stokke-sleepi/ stokke sleepi] [http://broadwaylili.ifrance.com/content/view/queen-ellery.htm queen, ellery] [http://noxuhax.ifrance.com/content/view/fax.htm fax 2920] [http://akmokanzen.ifrance.com/images/small/flaccianello-fontodi.htm flaccianello fontodi] [http://girlwho-is.ifrance.com/img/styles/www-breakdance.htm www breakdance com my] [http://tizolaa.ifrance.com/web/il-tiranno/ il tiranno del tibet] [http://lordsander.ifrance.com/topic/caricatore-cd.htm caricatore cd autoradio mp3] [http://deviantrus.ifrance.com/topic/ela-weber/ ela weber nuda] [http://lordsander.ifrance.com/topic/www-ubisoft.htm www ubisoft it] [http://jdawsona.ifrance.com/data/videoclip-smackdown/ videoclip smackdown] [http://lordsander.ifrance.com/topic/vido-t.htm vido t rio] [http://akmokanzen.ifrance.com/images/small/www-tod.htm www tod s group com] [http://tizolaa.ifrance.com/web/que-es/ que es renacimiento] [http://oiyaoi.ifrance.com/images/small/tengo/ tengo] [http://highbulp.ifrance.com/images/small/negrita-tablature/ negrita tablature basso] [http://tat-ooin.ifrance.com/resources/articles/io-con.htm io con te non ci sto piu] [http://lordsander.ifrance.com/topic/televisori-samsung.htm televisori samsung 29] [http://yeeden.ifrance.com/img/styles/new-balance/ new balance running shoe] [http://voltia.ifrance.com/content/view/miss-italia.htm miss italia sexy] [http://noxuhax.ifrance.com/content/view/meri.htm meri] [http://girlwho-is.ifrance.com/img/styles/tamigi.htm tamigi] [http://lordsander.ifrance.com/topic/rosa-vinicio.htm rosa vinicio capossela] [http://akmokanzen.ifrance.com/images/small/un-dvd.htm un dvd in fuga] [http://jdawsona.ifrance.com/data/starsky-and/ starsky and hucth] [http://igaros.ifrance.com/lib/debussy-infinito/ debussy infinito] [http://noxuhax.ifrance.com/content/view/clone-per.htm clone per giuochi] [http://highbulp.ifrance.com/images/small/pasion-de/ pasion de sabado] [http://kalian42.ifrance.com/text/directory/hotmail-com/ hotmail com pe] [http://lordsander.ifrance.com/topic/mercedes-lombardia.htm mercedes lombardia] [http://broadwaylili.ifrance.com/content/view/garmin.htm garmin 2006] [http://jdawsona.ifrance.com/data/dance-on/ dance on the moon] [http://toofarfrommaybe.ifrance.com/view/new/duratex/ duratex] [http://singaporepets.ifrance.com/library/html/toshiba-rd.htm toshiba rd xs32] [http://speedofsoun.ifrance.com/text/directory/fernada-lima.htm fernada lima] [http://girlwho-is.ifrance.com/img/styles/diffusori-b.htm diffusori b] [http://lordsander.ifrance.com/topic/il-kevlar.htm il kevlar] [http://oiyaoi.ifrance.com/images/small/nokia/ nokia 7110] [http://highbulp.ifrance.com/images/small/navigatori-mare/ navigatori mare] [http://deviantrus.ifrance.com/topic/lavoro-su/ lavoro su manduria] [http://igaros.ifrance.com/lib/serea/ serea] [http://jdawsona.ifrance.com/data/sms-mms/ sms mms] [http://lovereceier.ifrance.com/lib/strani-giorni.htm strani giorni] [http://speedofsoun.ifrance.com/text/directory/sony-playstation.htm sony playstation2] [http://lordsander.ifrance.com/topic/www-d.htm www d] [http://tizolaa.ifrance.com/web/www-goteborg/ www goteborg com] [http://kalian42.ifrance.com/text/directory/ontario-lago/ ontario, lago-] [http://girlwho-is.ifrance.com/img/styles/il-lancio.htm il lancio dei pinguini] [http://yeeden.ifrance.com/img/styles/catania-erboristerie/ catania erboristerie] [http://deviantrus.ifrance.com/topic/carica-alto/ carica alto candy lavatrici e lavasciuga] [http://igaros.ifrance.com/lib/barche-vendita/ barche vendita] [http://deviantrus.ifrance.com/topic/consulto-cartomanzia/ consulto cartomanzia amore] [http://deviantrus.ifrance.com/topic/mp-software/ mp3 software download] [http://lovereceier.ifrance.com/lib/foto-diddlina.htm foto diddlina] [http://lordsander.ifrance.com/topic/casse-senza.htm casse senza fili] [http://yeeden.ifrance.com/img/styles/p/ p4 640] [http://jdawsona.ifrance.com/data/server-dedicato/ server dedicato linux] [http://toofarfrommaybe.ifrance.com/view/new/vhf-radioamatori/ vhf radioamatori] [http://speedofsoun.ifrance.com/text/directory/paschi.htm paschi] [http://jdawsona.ifrance.com/data/stradario-di/ stradario di milano] [http://voltia.ifrance.com/content/view/testi-striscia.htm testi striscia] [http://toofarfrommaybe.ifrance.com/view/new/regina/ regina] [http://tat-ooin.ifrance.com/resources/articles/da-paura.htm da paura] [http://lordsander.ifrance.com/topic/campioni-di.htm campioni di guai] [http://jdawsona.ifrance.com/data/emilio-de/ emilio de cavalieri] [http://oiyaoi.ifrance.com/images/small/falso-movimento/ falso movimento] [http://demurediablo.ifrance.com/library/html/toner-samsung/ toner samsung scx4100] [http://igaros.ifrance.com/lib/pci-express/ pci express sli] [http://jdawsona.ifrance.com/data/honey-and/ honey and the moon joseph artur] [http://akmokanzen.ifrance.com/images/small/no-le.htm no le temasa el] [http://yeeden.ifrance.com/img/styles/toshiba-registratore/ toshiba registratore] [http://lovereceier.ifrance.com/lib/cappe-per.htm cappe per cucina] [http://speedofsoun.ifrance.com/text/directory/emme-esse.htm emme esse spa] [http://toofarfrommaybe.ifrance.com/view/new/spermula/ spermula] [http://jdawsona.ifrance.com/data/www-godo/ www godo] [http://broadwaylili.ifrance.com/content/view/dollar-gap.htm dollar gap] [http://toofarfrommaybe.ifrance.com/view/new/f-f/ f f f folling] [http://speedofsoun.ifrance.com/text/directory/canon-n.htm canon 5200n] [http://lordsander.ifrance.com/topic/idkey.htm idkey] [http://igaros.ifrance.com/lib/non-dirle/ non dirle chi sono] [http://singaporepets.ifrance.com/library/html/sfondi-gatto.htm sfondi gatto silvestro e titty] [http://yeeden.ifrance.com/img/styles/nuntereggaepiu/ nuntereggaepiu] [http://noxuhax.ifrance.com/content/view/lampada-w.htm lampada 100w] [http://yeeden.ifrance.com/img/styles/philips-magic/ philips magic 2] [http://deviantrus.ifrance.com/topic/come-si/ come si chiama la rana piu grande del mo] [http://girlwho-is.ifrance.com/img/styles/palmare-ipaq.htm palmare ipaq h6340] [http://tizolaa.ifrance.com/web/campo-di/ campo di maggio] [http://jdawsona.ifrance.com/data/carta-parati/ carta parati pordenone] [http://highbulp.ifrance.com/images/small/enrico-di/ enrico di milano] [http://demurediablo.ifrance.com/library/html/vendita-telefonini/ vendita telefonini] [http://highbulp.ifrance.com/images/small/un-mandarino/ un mandarino per teo] [http://demurediablo.ifrance.com/library/html/monica-bellucci/ monica bellucci calendario] [http://lordsander.ifrance.com/topic/universita-di.htm universita di foggia] [http://deviantrus.ifrance.com/topic/dan-balan/ dan balan] [http://lordsander.ifrance.com/topic/fulda.htm fulda] [http://lordsander.ifrance.com/topic/villaggio-sicilia.htm villaggio sicilia] [http://noxuhax.ifrance.com/content/view/candy-cth.htm candy cth 107] [http://lovereceier.ifrance.com/lib/infermiere-nude.htm infermiere nude] [http://highbulp.ifrance.com/images/small/the-vampire/ the vampire slyer] [http://yeeden.ifrance.com/img/styles/messa-solenne/ messa solenne] [http://yeeden.ifrance.com/img/styles/lottomatica/ lottomatica] [http://deviantrus.ifrance.com/topic/pasta-di/ pasta di mais] [http://speedofsoun.ifrance.com/text/directory/sur-obscura.htm sur obscura] [http://tizolaa.ifrance.com/web/cantalupo-in/ cantalupo in sabina] [http://demurediablo.ifrance.com/library/html/con-publiweb/ con publiweb english] [http://jdawsona.ifrance.com/data/ps-multi/ ps2 multi tap] [http://yeeden.ifrance.com/img/styles/grignani-mi/ grignani mi stracci il cuore] [http://highbulp.ifrance.com/images/small/there-you/ there you ll be faith hill] [http://broadwaylili.ifrance.com/content/view/moto-storiche.htm moto storiche vendita] [http://toofarfrommaybe.ifrance.com/view/new/renzo-lucia/ renzo lucia promessi sposi tv] [http://singaporepets.ifrance.com/library/html/usb-.htm usb 2 0 adattatore] [http://girlwho-is.ifrance.com/img/styles/koversada.htm koversada] [http://girlwho-is.ifrance.com/img/styles/www-rosso.htm www rosso alice com] [http://igaros.ifrance.com/lib/strength-x/ strength x] [http://broadwaylili.ifrance.com/content/view/quelque-chose.htm quelque chose dans mon coeur elsa] [http://kalian42.ifrance.com/text/directory/cat-a/ cat a pulta] [http://tizolaa.ifrance.com/web/fergie-sexy/ fergie sexy] [http://oiyaoi.ifrance.com/images/small/chalga/ chalga] [http://oiyaoi.ifrance.com/images/small/sidis/ sidis] [http://noxuhax.ifrance.com/content/view/private-line.htm private line] [http://speedofsoun.ifrance.com/text/directory/fisioterapia-della.htm fisioterapia della spalla] [http://oiyaoi.ifrance.com/images/small/nike-speedsweep/ nike speedsweep] [http://singaporepets.ifrance.com/library/html/gps-esterno.htm gps esterno] [http://demurediablo.ifrance.com/library/html/gioco-gratis/ gioco gratis scaricare computer] [http://singaporepets.ifrance.com/library/html/usb-pen.htm usb pen 256 sandisk] [http://singaporepets.ifrance.com/library/html/photo-di.htm photo di caparezza] [http://girlwho-is.ifrance.com/img/styles/cavalli-just.htm cavalli just accessori] 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.
Line 8: Line 8:


FUNCTION DEFINTION: string [int,int] group_string( string source, string regex )
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: string [int,int] test = group_string( "This is a test", "([a-z] ) " );


Example Breakdown:
Example Breakdown:
Line 15: Line 15:
'''group_string''' Call the function.
'''group_string''' Call the function.
'''"This is a Test"''' Feeding the function a sample string.
'''"This is a Test"''' Feeding the function a sample string.
'''"([a-z]+) "''' Your regular expression.
'''"([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?  
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.
'''The Parenthesis ():''' Tell the function this is a group of characters.
'''[a-z]:''' Tell us they will be lower case letters.
'''[a-z]:''' Tell us they will be lower case letters.
'''+:''' Tell us to look for one or more characters.
''' :''' Tell us to look for one or more characters.
That space between the ) and " Tells us the pattern ends in a space.
That space between the ) and " Tells us the pattern ends in a space.



Revision as of 15:57, 19 August 2007

visual studio net 2003 professional konica minolta pagepro 1250w gstring sexy www nawaiwaqt com pk king outdoor store materassino www zucchero tour roma 2004 demolizioni varese classe aa condizionatori fissi retino piscine crociera lavoro virgin airline pianta di firenze video gratis di selen e rocco siffredi elmi ati radeon 32mb hotel a tenerife las dalias pc pentium 4 3 2 globus ionoforesi memorie ram ddr 266 pc2100 free italia sex testo verdena luna color service srl torino chat gartuito conversaciones livin on the edge agriturismo senigallia felpa sport donna abbigliamento sportivo the mummy il gamecube si puo modificare mf3110 toner michel everytime di britney spaers saldatrici second me foto di ragazze obese gel unghie bmw 725 tds 1999 dfi lanparty ut nf4 ultra-d mensole per camerette video sesso con animali rosa passos tutti giu per terra giuseppe culicchia faith hill. when the lights go down sixy pinay com flettner, anton c era un ragazzo gianni morandi pacew sancamaleon samsung 710 tv 17 mutu hard frasi d auguri di compleanno virtual dj 1 08 tastiera mouse ottico wireless vancouver (isola) vacanza in villaggio pioneer dcs 535 lavina media center cdc guaine a spruzzo overdrive katy rose batteria wireless vari accessori king arthur film dvd tihert metal slug 00 seggiolino da auto supernatural new carmina burana cam porn la storia nel medioevo fever michel buble mpio fl quiereme besame raf 2004 uomini sulla luna cartuccia ink jet compatibile stokke sleepi queen, ellery fax 2920 flaccianello fontodi www breakdance com my il tiranno del tibet caricatore cd autoradio mp3 ela weber nuda www ubisoft it videoclip smackdown vido t rio www tod s group com que es renacimiento tengo negrita tablature basso io con te non ci sto piu televisori samsung 29 new balance running shoe miss italia sexy meri tamigi rosa vinicio capossela un dvd in fuga starsky and hucth debussy infinito clone per giuochi pasion de sabado hotmail com pe mercedes lombardia garmin 2006 dance on the moon duratex toshiba rd xs32 fernada lima diffusori b il kevlar nokia 7110 navigatori mare lavoro su manduria serea sms mms strani giorni sony playstation2 www d www goteborg com ontario, lago- il lancio dei pinguini catania erboristerie carica alto candy lavatrici e lavasciuga barche vendita consulto cartomanzia amore mp3 software download foto diddlina casse senza fili p4 640 server dedicato linux vhf radioamatori paschi stradario di milano testi striscia regina da paura campioni di guai emilio de cavalieri falso movimento toner samsung scx4100 pci express sli honey and the moon joseph artur no le temasa el toshiba registratore cappe per cucina emme esse spa spermula www godo dollar gap f f f folling canon 5200n idkey non dirle chi sono sfondi gatto silvestro e titty nuntereggaepiu lampada 100w philips magic 2 come si chiama la rana piu grande del mo palmare ipaq h6340 campo di maggio carta parati pordenone enrico di milano vendita telefonini un mandarino per teo monica bellucci calendario universita di foggia dan balan fulda villaggio sicilia candy cth 107 infermiere nude the vampire slyer messa solenne lottomatica pasta di mais sur obscura cantalupo in sabina con publiweb english ps2 multi tap grignani mi stracci il cuore there you ll be faith hill moto storiche vendita renzo lucia promessi sposi tv usb 2 0 adattatore koversada www rosso alice com strength x quelque chose dans mon coeur elsa cat a pulta fergie sexy chalga sidis private line fisioterapia della spalla nike speedsweep gps esterno gioco gratis scaricare computer usb pen 256 sandisk photo di caparezza cavalli just accessori 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.