Talk:String Handling Routines
morphine name a star fucking gay man where can i order wizard of oz checks emule server list pokemon liposuction free spyware downloads europe cheap tickets liver cysts bridal payday loan no direct deposit disney channel thats so raven video game magazine buick engines flowers pictures handjobs military mypay website affiliate program management sofa weight loosing exercises guitar tabs free bussiness plan example sex videos brandilove free xxx video nudism buy viagra---cheap listen to free music hotels in finland british army malaysia airlines mfi kitchens tylenol codeine kia millionaire match airfares free product samples ryder moving truck rental new car smiley download for yahoo wholesale replica watch minnesota department of transportation flight simulators hairy pussy cell cellular one phone pokemon game online massage sex drop shipping directory sexy stocking lasix sudoku puzzle christian dating principle bigbreasts free lesbian equipoise directory free phone reverse free online personal journal conversion chart norton anti virus download free ringtones now bmw convertible headliner 800 lookup number phone reverse latest nokia mobile phone insulin cymbalta cheap paintball guns hp pavilion laptop nudist photographs office desks canadian patent office flag state tennessee tiger tatoos tumescent liposuction suzuki swifts squirting video ugg online pharmacy affiliate program mapquest aerial map wifey continental air homecrest patio furniture clio renault cellular free lookup phone reverse ab workouts pro100 health food cephalexin granite counter free software photo world side view mirror double wide mobile home used car price accent tables mitsubishi parts lg mobile phone wholesale silk flower bouquets quick cash loan disneyworld hondaaccord shemale xxx vintage honda motorcycle part student airfare sims 2 elongate polarized sun glasses gay jobs porn online mono ringtones sony playstation online gambling casino side effects of plavix housewife generic phentermine foot fucking buy phentermine where home alltel download free ringtones kelvinator hyper thyroid internet roulette bangkok cricket free ringtones mortgage ammortization tables backgrounds wallpaper teen summer camp conservatory furniture new toyota supra body glove hollow body electric guitar motorcycle honda part livesexlist chlamydia photo electric fireplaces homepage page free panic at the disco ringtones halo 2 costume mexican soccer toni kessering oil filters dragon ball games earlyg.cn juegos gratis alltell free ringtones car rentals rottweiler photos yamaha motorcycles yorkies porno free argentina food football plays africa www kellybluebook com safety slogans erect penis photos medication information hemorrhoid treatment history coca cola dollar rental car laptop download netscape download music to mp3 player chrysler pacifica people search zaba make money online copper plumpers big women gay video hawaii rentals vicodin m360 free download for norton internet security 2006 tattoo pictures oakley juliet dior sunglasses cheap self-suck signs of an affair yellow jackets with ephedra demi moore jobs merry hill free boobs alan jackson ticket novelty toilet seats calgary transit 1 night in paris dem franchize boyz ridin rims hindi ringtones sports gambling rolex daytona exterior doors softwere for nokia 3230 silk bridal boquets military surplus womby.cn tokyo mew mew doujinshi free nokia ringtone download gag gift cartagena mexican glassware online video strip poker sample nomination form cheap swimming pools chubby anime stream radio airsoft gun wholesale earthlink business services effects of ativan free porn videos videos de sexo carnival myspace layout turquoise beads install sump pump pit frontman fender amplifier mujeres buy esgic plus online black dating online chocolate recipes schrock cabinets pipe cleaning brush stretched canvases marlboro cigarette online bank cd rate webcam sex wedding band earth works art gallery studio arabic woman kellyblue book nfl schedule strength cellular ringtone graphic organizers school improvement goal lesson london ontario swimming playing card spades trundle bed adirondack chair lyrics for aint no sunshine horse teams truck toppers cephalexin information california super lotto result maine wood turning airline travel edge phoenix radio all time best love songs indian sex movie sheriff la county election music videos network monitor windows 2003 military star credit download acrobat reader 7 coach handbag his first gay sex karaoke songs medical board examination uconn college basketball engine ma marketing search huge cock sex black sex teen estrogen prall manchester city football club logo masters of science in management nikon d200 family practice physician job opportunities banned commercials cingular go phone v cop 2 wwwbankofamericacom mirrored medicine cabinets united automotive product davids bridal mens denim january 28 birthdays top models sexy lingrie cock sucking prescription drug timea majorova bmw usa us army hat milking tit tips for enter the matrix uk phone directory account balance verizon view our greatest fear quote motley fool stock adviser state tax burdens letter for job run out xviii corps lay down with me tell me no lies lyrics jimny suzuki verizon wireless family plan map of westchester pa bill pay ammonium stearate free ecards abnormal management situation length of an alligator florida mobile home insurance tongue piercing velvet top rolex watch eraser head film a is for action lyrics cheap fioricet algorithm explain stock market trading teenage girls with red hair bass shoes air canada lucky jeans size home young designer university europe master international relations order sibutramine search for fine art lamps raymond new hampshire used car portland oregon used ceiling tiles red cedar river map musician ri wedding award medal jenna bush hot pics pamela anderson hardcore ibuprophen liver damage toys sex thomas cook holidays used trucks job quant office automation group collaboration software cock sucking reality porn no more tears tablature agusta golf national janice joplin mexico vacation synergy network management inventory management and accounting what are phosphates reading eagle lipitor american association of architect mozilla firefox 10 the sixth sense official tpm security software universal event pictures advantage comparison difference height thierry henry champions league addition green house golf cart mitochondrial genetic disease virtual reality software company widespread panic shows power in japan institute software training england new riding vacation animation tools freeware arterial narrowing access open form sport polos apartments rental hand pontiac trans am look what happened lyrics low fat high carbohydrate diets adapter google voip tin coffee signs jewelry design competitions softball amy chen spider man 2 cheat codes for pc pokemon cheats reversing you are my lucky star midi shotguns number plates northlake forest picture rome italy orange theater tree workers compensation para sailing linux ip address config a matter of course wireless internet provider discover card technique vehicle search pants sarah james patterns costco home furniture pamela anderson porn music for the moment mr bean clips msn messenger emotions tile saw trade show booth texas legislature 2005 property tax language laboratory equipment pension services ltd us military involvement in africa map city in pa enigma studio sailor moon download love spells reviewed milfs bbw blogs amg music reviews petite land world bank education data real yellow pages com mercy me stand for bike rack 2005 dress wedding toshiba customer support number easy elementary science fair project promise ring tradition lyrics for oh boy vivid dream picture of politicians vector force jose toledo miss kansas usa 2005 80 s cartoon international hair and nail show old english alphabet letter poetry competitions for children landing a plane ken burns biography the inn bed and breakfast vbhelper london magician what do rodents eat kids video chat rooms recall total information work and study abroad for canadians wwe champion belts romantic evening tip used currency counter image picture sex illinois special education scholarship australian female teachers history of teachers vestno mature appeal com rounded corner 45 degree sad away messages minnesota free public record java context api travelocity paris international financial reporting standards courses education residential specialist audio book free history the birth order theory kellly services sql server ignore pet loss crisis lines slovenia girls rod storage unit notice sample terminate product development process model internet providers austin mini golf orlando people care inc 60 thompson hotel in new york alaska weather underground the rift magazine astonishing maker money pulled my top north america united state arts and entertainment large size mother of the bride dress new york golf clubs treatment of bronchitis i gladly janet stevenson pc turntable imperial in las palace site vegas web lawerance university e m automotive new sex toy video personal income tax history myanmar flag international law article oral cavity sarah stone barton la bella y la attorney divorce houston in northshore high school houston look catalog 2006 crown victoria state laws of texas majority government in canada state education department verbal and non verbal tests international law marriage mls listing in va theeducationcenter antique fire engine video workstations amusement indiana park rebate gold miner vegas cingular wireless puppies for sale northern tools and equipment mens jeans estimate my tax return teen sex porn depression treatment guitar lessons hardcore black porn railings coffee makers free download norton anti virus ab lounge party invitation lowest fare airline ticket debt consolidation loan currency exchange cum sluts voyer sex large women bras arthritis early symptoms lowest airfare motrin ten commandments sex clip home heating microwave oven detroit airport crystal jewellery weddings dresses outboard motors mexico white page midi ringtone gas card forex trading huge vibrator gothic shoes cricket wireless phone service soccer players employee review forms newborn furniture audi a2 marriage man mesh underwear purchase phentermine online bbw anal cheap international tickets phone number look up garden clocks akai cheerleaders interior decorating gay sex video online dating services commercial properties for sale xxx cartoon t free software doll plugins acura integra criminal background check matchmaking american green card lottery bad buy car credit employment insurance jade jewelry jennifer aniston used vans anime porn international online dating augmentin christian singles dating womens swimwear bathroom tile design continental airline ticket free crossword puzzles manufactured home dealer birthday greeting card six second abs psp music downloads name search rabbit vibrators handbag wholesale people magazine mastiff exchange rate discount hotel coupons halloween costumes korean airlines cocktail dress lesbian love canopy bed zithromax carhartt chatroom 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.