Talk:String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>Kazim
More dead spam
Line 1: Line 1:
[http://irina5009189.idilis.ro/employee-recruitment/ employee recruitment video] [http://lisonka-91.idilis.ro/ac-drive/ ac drive europe in market report research] [http://shurrikk.idilis.ro/web/quick-fix.html quick fix loan paycheck advance] [http://shurrikk.idilis.ro/web/express-payday.html express payday loan] [http://lisonka-91.idilis.ro/diapers/ diapers] [http://ronald180.idilis.ro/library/medical-terminology/ medical terminology] [http://ann-eva.idilis.ro/web/chronoswiss-watch.html chronoswiss watch] [http://irina5009189.idilis.ro/away-message/ away message quotes] [http://shurrikk.idilis.ro/web/trim-kid.html trim kid] [http://ronald180.idilis.ro/library/asian-babes/ asian babes] [http://irina5009189.idilis.ro/wholesale-floating/ wholesale floating candle] [http://ronald180.idilis.ro/library/years-of/ years of college down the drain] [http://shurrikk.idilis.ro/web/california-colleges.html california colleges] [http://irina5009189.idilis.ro/audit-program/ audit program for employee benefit] [http://ronald180.idilis.ro/library/wheels-and/ wheels and tires] [http://irina5009189.idilis.ro/janitorial-supplies/ janitorial supplies cherry almond] [http://irina5009189.idilis.ro/credit-counselors/ credit counselors] [http://lisonka-91.idilis.ro/airport-logan/ airport logan map] [http://ann-eva.idilis.ro/web/free-forex.html free forex online training video] [http://shurrikk.idilis.ro/web/ken-mar.html ken mar] [http://ronald180.idilis.ro/library/mini-choppers/ mini choppers] [http://ann-eva.idilis.ro/web/i-heard.html i heard em say lyrics] [http://shurrikk.idilis.ro/web/simpson.html simpson] [http://shurrikk.idilis.ro/web/international-calling.html international calling card] [http://ann-eva.idilis.ro/web/lay-down.html lay down with me tell me no lies lyrics] [http://ronald180.idilis.ro/library/verizon-wireless/ verizon wireless account] [http://lisonka-91.idilis.ro/alturas/ alturas] [http://shurrikk.idilis.ro/web/lescol.html lescol] [http://lisonka-91.idilis.ro/picture-of/ picture of split rock light house] [http://ronald180.idilis.ro/library/freescreensaver/ freescreensaver] [http://ronald180.idilis.ro/library/free-cell/ free cell phone ringtones] [http://shurrikk.idilis.ro/web/i-love.html i love you art pictures] [http://lisonka-91.idilis.ro/employment-in/ employment in san antonio texas] [http://irina5009189.idilis.ro/music-used/ music used in movie] [http://ann-eva.idilis.ro/web/aol-free.html aol free virus protection] [http://irina5009189.idilis.ro/sexual-love/ sexual love quizzes] [http://shurrikk.idilis.ro/web/sexy-young.html sexy young girl pics] [http://ann-eva.idilis.ro/web/kelley-blue.html kelley blue book used car price] [http://irina5009189.idilis.ro/lcd-monitor/ lcd monitor] [http://ann-eva.idilis.ro/web/meant-each.html meant each] [http://irina5009189.idilis.ro/virtual-server/ virtual server service pack] [http://ann-eva.idilis.ro/web/alligator-florida.html alligator florida photo] [http://ronald180.idilis.ro/library/philips-mp/ philips mp3] [http://lisonka-91.idilis.ro/abbeys/ abbeys] [http://irina5009189.idilis.ro/add-com/ add com port to windows xp] [http://ronald180.idilis.ro/library/party-sex/ party sex galleries] [http://irina5009189.idilis.ro/san-andreas/ san andreas cheats and codes for xbox] [http://shurrikk.idilis.ro/web/lottery.html lottery] [http://ann-eva.idilis.ro/web/s-silent.html 1920s silent movies] [http://lisonka-91.idilis.ro/today-is/ today is the day song] [http://lisonka-91.idilis.ro/clonidine/ clonidine] [http://ann-eva.idilis.ro/web/vicerex.html vicerex] [http://lisonka-91.idilis.ro/can-crusher/ can crusher] [http://ann-eva.idilis.ro/web/whole-life.html whole life health] [http://shurrikk.idilis.ro/web/tow-truck.html tow truck chicago] [http://ann-eva.idilis.ro/web/playing-music.html playing music on psp] [http://ann-eva.idilis.ro/web/inland-homes.html inland homes] [http://ronald180.idilis.ro/library/what-is/ what is java programming] [http://lisonka-91.idilis.ro/rj-safety/ rj safety] [http://ronald180.idilis.ro/library/adaware-se/ adaware se professional serial] [http://irina5009189.idilis.ro/mba-letter/ mba letter of recommendation] [http://ronald180.idilis.ro/library/humulin-n/ humulin n insulin] [http://shurrikk.idilis.ro/web/monopoly-.html monopoly 3 activation code] [http://ronald180.idilis.ro/library/clitoris-orgasm/ clitoris orgasm] [http://ronald180.idilis.ro/library/artist-music/ artist music news] [http://shurrikk.idilis.ro/web/hall-rental.html hall rental] [http://ronald180.idilis.ro/library/planet-of/ planet of lust] [http://ann-eva.idilis.ro/web/iq-scales.html iq scales] [http://shurrikk.idilis.ro/web/pagination-code.html pagination code] [http://ronald180.idilis.ro/library/i-dont/ i dont know how to love him midi] [http://ronald180.idilis.ro/library/retailer-of/ retailer of the year] [http://lisonka-91.idilis.ro/old-spanish/ old spanish movies] [http://shurrikk.idilis.ro/web/andrew-k.html andrew k fletcher] [http://ronald180.idilis.ro/library/standard-weights/ standard weights and measurements] [http://ann-eva.idilis.ro/web/walt-disneys.html walt disneys animation entertainment] [http://irina5009189.idilis.ro/top-italian/ top italian restaurants in philadelphia] [http://ronald180.idilis.ro/library/video-of/ video of chicken little] [http://ronald180.idilis.ro/library/cheapest-airfares/ cheapest airfares] [http://ann-eva.idilis.ro/web/philips-bulbs.html philips bulbs] [http://shurrikk.idilis.ro/web/wisconsin-driver.html wisconsin driver test] [http://ann-eva.idilis.ro/web/insert-html.html insert html email image] [http://ronald180.idilis.ro/library/office-automation/ office automation equipments] [http://lisonka-91.idilis.ro/upper-respiratory/ upper respiratory infections] [http://lisonka-91.idilis.ro/suncom-wireless/ suncom wireless] [http://ronald180.idilis.ro/library/landing-pier/ landing pier point] [http://lisonka-91.idilis.ro/hugo-boss/ hugo boss] [http://ronald180.idilis.ro/library/what-is/ what is latitude and longitude] [http://ann-eva.idilis.ro/web/new-album.html new album releases for 2005] [http://lisonka-91.idilis.ro/the-dead/ the dead case password] [http://ann-eva.idilis.ro/web/credit-card.html credit card companies] [http://irina5009189.idilis.ro/pictures-of/ pictures of french maids] [http://irina5009189.idilis.ro/the-earth/ the earth and its people 3rd edition] [http://irina5009189.idilis.ro/a-labeled/ a labeled fish] [http://shurrikk.idilis.ro/web/www-western.html www western union money transfer] [http://ann-eva.idilis.ro/web/salon-reception.html salon reception desk] [http://lisonka-91.idilis.ro/knit-tops/ knit tops tees] [http://lisonka-91.idilis.ro/sram-chains/ sram chains] [http://lisonka-91.idilis.ro/waterloo-mall/ waterloo mall] [http://irina5009189.idilis.ro/littleboys/ littleboys] [http://lisonka-91.idilis.ro/pumping-partys/ pumping partys] [http://ann-eva.idilis.ro/web/something-for.html something for a laugh] [http://ronald180.idilis.ro/library/orgias-anal/ orgias anal] [http://shurrikk.idilis.ro/web/designer-dress.html designer dress sale wedding] [http://ann-eva.idilis.ro/web/ask-jeeves.html ask jeeves] [http://irina5009189.idilis.ro/woods-hole/ woods hole research centre] [http://lisonka-91.idilis.ro/the-kitty/ the kitty litter] [http://ann-eva.idilis.ro/web/audit-income.html audit income tax] [http://shurrikk.idilis.ro/web/spyware-download.html spyware download] [http://ann-eva.idilis.ro/web/accessory-camera.html accessory camera digital hp] [http://ann-eva.idilis.ro/web/vt-boston.html vt boston college] [http://irina5009189.idilis.ro/psychological-and/ psychological and emotional health] [http://lisonka-91.idilis.ro/anty/ anty] [http://ronald180.idilis.ro/library/playboy-bunny/ playboy bunny layouts] [http://ann-eva.idilis.ro/web/poison-band.html poison band photos] [http://lisonka-91.idilis.ro/wells-fargo/ wells fargo stock purchase plan] [http://ann-eva.idilis.ro/web/fucking-pregnant.html fucking pregnant] [http://shurrikk.idilis.ro/web/abuse-women.html abuse women] [http://ann-eva.idilis.ro/web/quixtar.html quixtar] [http://irina5009189.idilis.ro/party-porn/ party porn swinger] [http://shurrikk.idilis.ro/web/metodos-de.html metodos de aprendizaje] [http://irina5009189.idilis.ro/horny-house/ horny house wives] [http://shurrikk.idilis.ro/web/steven-tyler.html steven tyler] [http://shurrikk.idilis.ro/web/man-over.html man over 55] [http://shurrikk.idilis.ro/web/david-bisbal.html david bisbal] [http://lisonka-91.idilis.ro/saint-john/ saint john maps] [http://ann-eva.idilis.ro/web/tattoos.html tattoos] [http://ronald180.idilis.ro/library/sexual-enhancement/ sexual enhancement] [http://ann-eva.idilis.ro/web/magic-jumps.html magic jumps] [http://irina5009189.idilis.ro/beef-jerky/ beef jerky] [http://ann-eva.idilis.ro/web/skelaxin-online.html skelaxin online] [http://irina5009189.idilis.ro/electric-scooter/ electric scooter sale] [http://lisonka-91.idilis.ro/japanese-movie/ japanese movie nurse porn] [http://ronald180.idilis.ro/library/metal-roof/ metal roof insulation] [http://lisonka-91.idilis.ro/sleep-apnea/ sleep apnea symptoms treatment] [http://lisonka-91.idilis.ro/irish-dancing/ irish dancing birmingham] [http://ann-eva.idilis.ro/web/health-and.html health and safety] [http://lisonka-91.idilis.ro/paul-smith/ paul smith watch] [http://ronald180.idilis.ro/library/air-travel/ air travel last minute deal] [http://lisonka-91.idilis.ro/dv-in/ dv in out] [http://irina5009189.idilis.ro/stacy-london/ stacy london] [http://lisonka-91.idilis.ro/rambo-ii/ rambo ii] [http://lisonka-91.idilis.ro/chaussures/ chaussures] [http://shurrikk.idilis.ro/web/crystal-carlson.html crystal carlson] [http://irina5009189.idilis.ro/arizona-softball/ arizona softball schedule] [http://lisonka-91.idilis.ro/wooden-handles/ wooden handles for fan] [http://shurrikk.idilis.ro/web/egypt-land.html egypt land area] [http://shurrikk.idilis.ro/web/nissan-skyline.html nissan skyline models] [http://irina5009189.idilis.ro/priceless/ priceless] [http://ronald180.idilis.ro/library/motorola-blue/ motorola blue tooth headset manual] [http://ronald180.idilis.ro/library/jimny-suzuki/ jimny suzuki] [http://shurrikk.idilis.ro/web/ml.html 350ml] [http://shurrikk.idilis.ro/web/true-love.html true love game] [http://irina5009189.idilis.ro/nude-katie/ nude katie holmes] [http://irina5009189.idilis.ro/calcium/ calcium] [http://ronald180.idilis.ro/library/male-black/ male black gay man] [http://shurrikk.idilis.ro/web/ar.html ar15] [http://lisonka-91.idilis.ro/ici-deluxe/ ici deluxe paint] [http://shurrikk.idilis.ro/web/in-from.html in from the storm] [http://ronald180.idilis.ro/library/send-me/ send me spam] [http://ann-eva.idilis.ro/web/amway.html amway] [http://ann-eva.idilis.ro/web/water-and.html water and power credit] [http://lisonka-91.idilis.ro/adobe-reader/ adobe reader 60 free download] [http://ronald180.idilis.ro/library/podcast-radio/ podcast radio stations] [http://lisonka-91.idilis.ro/grits-and/ grits and eggs ringtones com] [http://lisonka-91.idilis.ro/perspectives-makeup/ perspectives makeup] [http://shurrikk.idilis.ro/web/timeshare-apartments.html timeshare apartments for sell italy] [http://shurrikk.idilis.ro/web/elevator-co.html elevator co ltd] [http://ann-eva.idilis.ro/web/amp-meter.html amp meter dc] [http://shurrikk.idilis.ro/web/magazine-remix.html magazine remix] [http://ronald180.idilis.ro/library/social-security/ social security district offices] [http://irina5009189.idilis.ro/motorway-maps/ motorway maps england] [http://ronald180.idilis.ro/library/printers/ printers] [http://ronald180.idilis.ro/library/mc-callum/ mc callum house] [http://ronald180.idilis.ro/library/mangosteen-for/ mangosteen for sinus problems] [http://ann-eva.idilis.ro/web/radio-station.html radio station business news iowa] [http://lisonka-91.idilis.ro/cheap-printer/ cheap printer] [http://lisonka-91.idilis.ro/bigtit/ bigtit] [http://irina5009189.idilis.ro/guardian-generators/ guardian generators rv] [http://irina5009189.idilis.ro/att-conference/ att conference call set up] [http://ann-eva.idilis.ro/web/beautiful-arab.html beautiful arab girls] [http://irina5009189.idilis.ro/emirates-airline/ emirates airline] [http://lisonka-91.idilis.ro/free-movie/ free movie xxx] [http://lisonka-91.idilis.ro/chronic-alcoholism/ chronic alcoholism] [http://lisonka-91.idilis.ro/rhianna/ rhianna] [http://irina5009189.idilis.ro/i-remember/ i remember you lyric] [http://ronald180.idilis.ro/library/game-cartoon/ game cartoon] [http://shurrikk.idilis.ro/web/crosscheck.html crosscheck] [http://shurrikk.idilis.ro/web/squirt-movies.html squirt movies] [http://ann-eva.idilis.ro/web/email-marketing.html email marketing software] [http://ronald180.idilis.ro/library/spice-one/ spice one] [http://ann-eva.idilis.ro/web/kind-words.html kind words for children] [http://shurrikk.idilis.ro/web/web-cams.html web cams] [http://ann-eva.idilis.ro/web/psychedelic-band.html psychedelic band posters] [http://shurrikk.idilis.ro/web/longevity-information.html longevity information] [http://shurrikk.idilis.ro/web/buy-pharmacy.html buy pharmacy online] [http://lisonka-91.idilis.ro/mechanism-of/ mechanism of antibiotic resistance] [http://irina5009189.idilis.ro/stripe-shirt/ stripe shirt guy] [http://shurrikk.idilis.ro/web/at-the.html at the end of saw 2] [http://ronald180.idilis.ro/library/birthday-games/ birthday games] [http://lisonka-91.idilis.ro/stripper/ stripper] 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 04:46, 7 November 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.