Talk:String Handling Routines

From Kolmafia
Revision as of 00:35, 23 November 2007 by 222.62.198.66 (talk)
Jump to navigation Jump to search

download punk ringtones citizen watch uk ghillie suit linksys router verizon motorola cell phone daybed comforters four leaf clover star trek ringtones gardening vixena mp3 software download yamaha atv amoxicillin dosage strange cosmos carver boats gall bladder femaleejaculation amateur voyeur cabelas fucking teen rozerem diane von furstenberg dresses vicoprofen mature swingers tramadol hydrochloride orlando flights jacksonville jaguars message board fruity loops studio baby bedding tecumseh parts buy ephedra rocephin dollars karen mcdougal sexual health amateur free picture sex hotel with honeymoon suite chubby porn european roulette hotbird satellite tv havertys bedroom furniture moneys order ultram biggest wedding toasts free birthday cards cheap effexor free mahjong www wells fargo bank com dmx mp3 chanel purse alcoholism sport authority ephedra online cheap lorazepam lower back tattoos tramadol online printable coupons porn mpegs download morpheus zanex what is cyclobenzaprine six order lortab online texas holdem myspace code real ring tones used motorhomes free mobile softwere sexy panties abilify health video free adult chat rooms medical terminology software bridgestone dueler at tires mazda dealers plotter interest calculation lana lotts vacation rental nokia themes endometriosis discount viagra hgh side effects roller skates asian dating adaware download florida villas spa equipment citizen watches cic credit monitoring adobe acrobat distiller free download buy flagyl viagra drug fashion dress up dolls celebrity scandals rent townhomes naked beautiful woman philippine airline youngsex vacations rentals in florida dog breed selector dean phoenix lexus nexus granny porno mature clits lesbicas men eating pussy ari hot chicks nude danzel mp3 dick fucking punkbuster sexy shemale baby shower idea nightfire soluce en francais pc gill prometheus pussy pump aero bed in a bag doa volleyball ephedra diet pill medical terms covergirl newport news catalog vs electric torture padres baseball rug outlet cat fight anal2 vwtool free pussy pics wetting danielle fishel blood pressure porno pic free reverse phone lookup postpartum depression teen hitchikers dunhams sports galco hungryjoes resistor silicone wristbands wwe stacy tequin decorative mirrors cars direct free baby stuff birthday invitaions klm airlines stacys mom gay teen cum orange beach gay men kissing trisha sri lanka driver detective torrent mailing send in the clowns navy pier first cum cataract youngbloodz knock off designer handbag miss howard stern midnight club 3 dub edition cheats dodgeram ladies motorcycle boots anime guy showoff lesbos sex traci lords sex cat lovers gifts child pussy stone cold steve austin freesexpictures air beds hard ass camping clipart tom welling shirtless golf cart parts dlp rear projection wavefront lasik spa parts german shepard puppies hidden camera girls project pee dickies pants julia parton air cleaners eczema pictures blond models free pussy casual wedding invitations dual action cleanse broken wings children halloween costume embroidery stock broker training reverse phone directory sex cartoons car cock low rides hyperthyroidism free documents for filing divorce deramaxx hand bags toyota mexico selena cum shot dont date him itrip lcd review heated mattress pad flower tattoo designs huggies coupons breitling for bently cmi8330 audio adapter free download porn for women best rated anti virus software eggshell massivecock game house home medical supplies air gun business cards finn comfort shoe movies sex halloween crafts iwc watch turner rolex yacht master deck buy viagra now coffee and caffeine room decorations triton showers hot air balloon history carrier furnace free cingular ringtones maxim magazine pocket knife huge tit transmission parts endometriosis symptoms internet black jack dozer teen picture free templates sex free video pictures porn movies airline ticket bid images lesbians having sex clothing wholesale los angeles lisinopril hctz asian fuck internet auction massivecocks hydraulic press shirt cheap celexa petrol remote control cars soccer ball graphics xxx live cam no checking account required payday loan ford focus latin women dicyclomine interest rates chevy oem parts eva ionesco bondage video new balance outlet horny housewife elton john ticket free ringtones for metro pcs free mp3 files downloads furniture thomasville direct compute butalbital railings foreclosure houses in fl norelco shavers gay anal sex free download lesbian group sex christian dating principle norton anti virus update prices modular homes pergola designs mens louis vuitton wallets nissan part womens anal orgasm order lipitor sex dirty picture wedding jason mraz victoria styles shakespeare shiny panties renagade date pick free pee black erotica how to grow gourmet mushrooms kentucky derby tickets cheater ikki tousen tia bella lindsey lohan naked beaver hunt fort campbell sean hannity ripped abs summer altice naughty america airline schedules united airline registry repair kingfisher airline the kinison internet fraud hot males skunk spray arizona map ntsb ganesh dollar bill tan ass digimon rika fart sounds tony hawk underground 2 web site marketing strategy las vegas airport shuttle white men having sex with black women rachel stevens naked heat gain berita harian femfight the blood brothers young muscle boys bang bang my baby shot me down white ghetto booty herbal nutritional supplements ferrari liz hurley nude ranma porn drug pictures pregnant preteen liability insurance trans am barry white mp3 mp3 files german to english medical billing and coding helios hot girls pics jessica darlin hoodia for weight loss clothing optional busty asian secretary duct cleaning backyard pond elenasmodels discount plus size lingerie dvdshrink children bathing prom gowns lingerie sexy store chili recipe white claim jumpers national booboo bbs little pedo lolita model pics enhance sex drive urban porn blocker energy nude women finnteen young facial lancaster high schools sexual punishment citalopram free games download mind control stories sweet anime dryer booster fan sell my car selma hayek recovery pool parts sexy thong top celebs rooibos tea yahama 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.