Talk:String Handling Routines
free physic reading chaise lounge sofa free calorie counter bajar musica side effects of seroquel old mature marlboro cigarettes a night in paris hilton anniversary gift ideas yamaha outboard parts girls college car used aol radio hotel caceres liver disease symptom aerial views free web cam sex chat jeep grand cherokee happy tree friends nissan sentra dsw shoes american express black card black bbw porn cell reverse directory ged courses online teenie sex mating animals dicks sporting goods ez trust antivirus wheelchairs nine west dro kershaw knives omron nebulizers how long does xanax stay in your system online hardware stores orgasm pics pornosex singapore computer buy skateboarding ramp wholesale eyeglass case toyota canada devon replica watches girl adultfriendfinder com prudential realty breast lift hernia repair best cell phone plan prepaid espresso pods acapulco nissan maxima accessories temperature toyota sienna glass cake dome gel products nails vintage designer handbags paris hilton sexvideo breast enlargement pills accupril football gambling pool game landscaping ideas polymyalgia rheumatica treatment ford ranger parts first fidelity mortgage tmobile one touch blood glucose meter website review islam pantyhose fetish verizon wireless family plan cytomel verizon wireless ringtones dominio hosting gratis jennifer love hewitt jennifer lopez nude barcelona fc plymouth roadrunner adobe downloads bedrooms nude celebertys video clips play pool amana heating and cooling free online diner dash game bass shoes tramadol prescription girls in tight jeans airplane ticket phentermine online gantry crane online puzzles halogen lamps tenuate dospan baptism invitations movies folding tables schrock cabinets seventh teen tgp latina porn stars teen titans hentai gangbang sqaud anal gangbang free beastiality pics facethejury free hentai video clips tasteful nudity fat girls getting fucked nude men big cock cum preeteen breast reduction surgery naked protest sex toys for her boys underware tit wanks sons fucking moms teachers having sex lipgloss vintage bondage naked bodies sex pic folladas queen latifa nude sunbathing men underwear underage girls sex map page designer dog collar nice girls page oral sex videos naked grannies page girl fucking horse mature blow jobs tiny cunt home mischa barton naked oklahoma casino gambling petite teen girls page women having sex with women casual male caned priceless girls here spongebob porn as seen on tv store brazilian girls femorg girl getting fingered fanning island home craft patterns mulan sex pissed pants christy hemme playboy photos male mastubation kick some ass used auto dealer chicago purple haze jimi hendrix shape poems women bodybuilder exercise mats here gang bang girls creative spanked wife ti amo bumps on penis map sister pussy map sex and the city ringtone permanent cosmetic exclusive mortgage lead sandra bullock nude sexy lingerie hip hop clothing latina asses intex guano apes mp3 page map lita nude nici sterling fully trained dogs for sale anal happy sex escorts houston models colorado department of education utah realty starry eyed surprise cheap wet suits pregnant porn jessica simpson tits girls night out 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.