Talk:String Handling Routines

From Kolmafia
Revision as of 08:24, 9 November 2007 by 123.199.23.72 (talk)
Jump to navigation Jump to search

attach click file image message photo select window ashlee cum how to install shingles kitchen fresh chicken cable tv signal booster java soap server under the water mp3 game poker transparent bikinis islam history myspace song music codes anastasia kelly london factory transport packaging dolls philips lcd i m burning up man on fire soundtracks woman girl love association homes milwaukee county courthouse records sex voyeur making calendar software slow song list ocean scenes wallpaper yoyo games online electric wholesales bedroom furniture usa companies registry new jersey public schools no charge song freecreditreport com jose toledo surface integrals in spherical coordinates medicine quality assurance representative stratera refrigerator air force ones lietuviskas radijas austin raves pay as you go verizon cell phone medication nowich union direct sexy dress free cingular ringtones nipple licking software to play music backwards north carolina university baseball ibu 6 research skills middle school hamilton apartment medical device jobs ireland raving fans video eat london menu cardura storage vancouver bc 2004 by county election presidential result uk cheap flight monthly horoscope cell tones recording studios in alabama clubs electricity free super mario brothers theme music mp3 caricature grannies party games nude darth maul didrex park home insurance tmobile ringtones anna nicole smith nude true love game photosynthesis and light reactions tila robert sep kid dental insurance public television in hustler kid zone penguin www planet poker sutter hill ca free coupons generac power washer part keflex information bet nor cote international inc matrix mortgage international bargain network fish lake utah picos school 2 indent code macromedia flash player for window 98 show horses uk sailor moon bad guys kernel memory leak online casino play for fun norfolk island packages lotto software free downloads bmw accessories car warranty motorcycle jacket sirius satellite radio scarve foreclosure houses in fl bare escentuals mineral veil sex offender search melyssa ford wallpaper ginger bath fixtures alaska airline flight information heart disease boost free mobile ringtones thrity car rental formflow download hydrocodone no medical records oriental massage dallas atkins diet sexy men mp3 to wave converter pamella anderson outboard motors diesel transfer tanks kids birthday entertainment collection live cams methylprednisolone adhd treatments donne tv antenna business insurance wood sheds alcohol 120 monthly calendars tiger tatoos pamela anderson nude birthday party supplies britney spears naked adipex without a prescription black hot lesbian adult heat rash linkin park janet jackson weight loss anadrol vicodin m360 naturism south park ringtones jacuzzi spa white gold toe rings aol free virus protection music ringtones lockheed federal credit union amateur anal texting movie projectors free dates meds sbc dsl download free games for all mobile phones soma buy online buy fen phen lufthansa airline weather in paris france boats for sale bernardaud home loan arab radio tv horse trailer weed mature ladies sugar cookie recipy hp printer driver phentermine diet pills buy xenical christina model 3ds max 8 activation code gay cocks wedding invitation wording free adult porn game personal debt consolidation loan wine racks proscar novelties cheaptickets subaru accessories webtv teensex lowest fare air ticket free calender homepage home exercise equipment link ultimate surrender carafate short homecoming dresses having sex reebok basketball shoe american express black card impotence cure squawks.info richard sewell list permissions jtag tools match play scoring in golf illinois central railroad photo properties for rent in spain medical experiment in concentration camp army federal credit union woman prefer apartment search web site 17 weeks pregnant what to expect taking off her bikini oregon state fire fighter s club 7 dance move women defeating men singular telephone leaving cert chemistry solutions omega watch photo in from the storm world savings bank california pussy cat dolls nude object first with java roma villa to marry a millionaire visa cardholder services amplifier final rf effects of caffeine on plants new orleans grand palace hotel review eraser head film music ringtones for verizon and oh so tired of being sick academic licensing psychologist review juegos de coche gratis niagara falls hotel casino air tickets ukraine university of phoenix class catalog its cool to be smart windows xp change user name love to maxtor hard drive problem about iraq war esterlina libra like sunday wireless scanning windows used stove and refrigerator active in usa volcano s club 7 dance move educational psychology journal article microscope and focus part repair watch air trans america super 8 times square hotel mortgage loan matrix sarasota golf real estate welcome to peoples first local time dallas texas white sierra window basic tutorial sony sports network walkman should pay professional apology letter management and supervision in law enforcement art gallery johnson city virginia lowest cost health insurance lexus interior part unemployed looking for work sutter hill ca inner bank effects of drinking and smoking ministers cool would contractions medication flow sheets nursing jobs boston ma 2006 druge report minority executive average law school gpa mobile n73 nokia phone snow melting system european foundation for quality online pain medications without prescription soccer camps tao lin tv card pci express php website search estate mississauga real pony express photographs ken ono upcoming concert tour action busses timetable lowest home financing rate which video game character are you models and prices of modular homes nude katie holmes real estate virginia am logo pan sugar and spice models amsterdam picture girl monitor panel pet food home delivery london student apartments sun flower clip art www pyrex com viet nam visa application young authors conference ohio yellow gold bracelets super sized me metro card holders anime love story metal floor lamp acrylic acid polymerisation mapa do japao international business guidelines world cup qualify amateur lip pussy professional credit counselor and here we go again lyrics lake hamilton middle school ripping cds linux the missing persons band win sock fix enron photo torrent player free download which version of iis receiving online credit card payment paint colour charts australia soccer pepsi team web marketing business to business 1994 f 150 advantage comparison difference height swimsuits women board shorts longevity quiz airline american commercial rise of nations expansion review organic food wholesaler womens leather coats stanford encyclopedia of philosphy auto gps review system young asian virgins north american mountains tattoo covering makeup animal fact for kid old world cheese shop relationship specialists april day important in neil young human highway road alloys 3 4 cruise day sony projectors lcd april fools students alive dead round spin mens medium hair styles local katrina relief efforts ron woods rolling stones use of force analysis recipe that kid can make outcome evaluation native american reservations poverty the progress index word perfect converter mac os x 2002 authentic jersey legs in nylon stockings in veritas auto body salvage yards real player media browser mb electronics philosophy of education teacher no salt cooking movie good new posters slim down diet 45 go man meet older years skoda octavia 4x4 los angeles youth orchestra teacher education accreditation council pacific specialty ins os x dock gnome when daylight savings time changes ontario mining regulations sample chart graph spider man ps2 game cheats john hayes 2nd commercial lender mortgage expensive jewelry designers release of o level result 2005 album photography supply rss bar codes edging machine metal sheet opening router ports listing mls tampa texas buyer agent air international system accumulation distribution stocks photoshop watermark effect st matthews school of medicine panda range red wedding site cincinnati tech data group when to use who and whom zed 24 ancient china the role of woman shea properties california radio straight talk duck key real estate free anti virus software downloads energy conservation act 2001 super pocketbike no teletrack payday loan weather mp3 minder guardian jobs online site atchison mo free ringtones for a motorola phone movie projectors lap tops party invitation shoes speed training london brick company uk poetry paradox front load washer archaeology jobs canada prom dresses sean johns clothing line ex girlfriend pictures viva hot babes antique silverware whiplash injuries phone directory ireland prometrium american roulette technical analysis from a my husband is not attracted to me normalize sound live nba player see they los continentes swingers sex chummies.info wedding flowers chanel purses hot girl homepage what does this mean presentation skills monica model archive winrar international accounting harmonization vigrx online adult movie rated xxx map of evanston il sex toon basic poker rule alliance for healthy homes anime movie dvd henri matisse painting la aula rca mp3 players lcd screen delta leads to nothing icra online ltd skimpy bikini right triangle 45 45 90 walmart stores nylon carpet medication information old western town how to make roman blinds m e t h o d man equal exchange fair printers young girl having baby helicopter game rss bar codes american pride realty northwest airlines areale lucy pinder young pussy homepage ordered lists eo 336 pseudomonas aureginosa incloude.info port probing cameron dias exercising facts bridesmaid gown wood home office desk webmail earthlink ahmad amin implicit memory task 8 psp signature tag diclofenac sod xara download free site application education grant information technology celebrity archives india porn marriage scriptures art deco decor home shopping well known quotes love match calculator majorca spain hotels natural cures database world warcraft warlock forum outrageous video technology marketing jobs europe eye eye myspace.com site noise off summary ringtones for us cellular phones used ceiling tiles average family size auburn university where people finder sweden portugal ultras ohio nash european blow job zovirax john miler protein supplement comparisons within temptation music videos porn vhs dvd play a mcdonalds game appointment reminder service entertainment las may vegas pillow talk is extra pink titty saturdays child works hard for a living st. thomas moore church new york city adobe acroread mac os x map of city in montana 2006 new auto settlement hierarchy definition no global warming rss stock feed taste of the world restaurant korean to english alphabet anime nudity microsoft problem window action emergency plan response luxury yacht group hoodia pilot insurance company toronto treated pole 1996 packer propecia online air bag suspension videos the battle of bunker hill tiffany and co shopping paying taxes as an independent contractor miami dade housing u2 downloadable music 2 storey house plan mass transit magazines protein supplement comparisons africa elizabeth port ase prep test new ceo press release white person jokes the good life tab extra special anniversary ideas gifts social studies games kids equipment nation rent rental dianabol syntactically correct pictures of brken hearts xbox computer monitor adapter personal hygiene when handling food repeat libertyville sports st joseph hospital oakland man woman sex live l scar new nfl orleans page saint wwe ringtones pro tect security wolfs head l scar print shop 8 paul shear xp fix apply for a job in kuwait naked news password username download cheap ringtones the best cash paid online survey wma to mpeg conversion president bush popularity rating aisle say automation class doesnt support make me blind when your eyes close man older screwing medical laboratory automation korrelation interview with the vampire the movie saving files on ipod infinity suv cars snap shots gay school district knoxville tennessee sms text messages college 3rd u.s circuit court of appeal jeep review wrangler meaning of amrican indian names jacket step away from the permutation groups freemovies com memory lapse weed sony atrac auto cheat code grand psp theft auto show effective six trait writing free nokia ringtone composer adobe photo editor free download stephen miller japan pre-menopause compare travel insurance quotes mac 11 gun pictures masturbating for orgasm incloude.info education verification diet sheet for diverticulitis wet hot sex flower fairies export sql data to excel lol lol lol lol internet business life insurance air travel last minute deal surplus online auction ny return status tax price guide for rare coins spring break girls super lotto address for virginia department of taxation lesbian porn the best motorcycle helmet verizon residential phone service xxx gout sibel kekilli motorola energy system group robert lewis stevenson state park storyboards for commercial link asian milf remington sma engines why the twin towers did not fall inventor tutorial kidney protein tests arran hotels spain gdp 2005 e-donky adipex online pet supplies and products mazda part accessory friedmans jewelry movie tickets florida lottery result mexican sex pantyhose eur j clin microbiol infect dis cymbalta and weight gain wooden shoes rack memory test computer software laser angeline nude pacific states cast iron site portal best practices upper deck kids enzyte master canada pam anderson fuck anti cancer diets acura mdx 2003 fentanyl patch insurance sale lead aclu college enalapril and supply chain management and 5 1 2 shoes satellite photos myspace font free quilt patterns piem s african pop music vitamin c daily requirements adopt a child school gerls retirement savings program free lesbian porn movie lunesta side effects templating busty amateur zodiac signs 3d background play the mansion indian mexican tribe wedding flower holders new construction charlotte nc presentacion de una empresa peter regan escape code for world poker tour commerce sean johns clothing line pictures of slavery in africa tco 99 resell computer audiovox ringtone up do hairstyle photos shabby chic baby sheets order actos vintage nudists photo galleries teenage girls with red hair 2 block writer info http search ebay com electr information on addiction icao code register domain names search engine volkswagen truck adventure tourism canada pictures of geisha girl hydrocodone pacific specialty ins the wellington hotel ny oregon cell phone service list zombie movie discount wellbutrin time in lahore italian visa uk cheap paxil maintenance web site india problem solving games for children cheap ionamin army of the night mac network games liqueur chocolate cheap codeine protection racket cases microsoft problem window twisted porn picture download tv ringtones discount imitrex buy zanaflex our lady peace life lyric power plant professional void volume fraction jobs in lansing mi local radar texas weather buspar online esp audio pages port stephens australia art image space ip table robert frances group buy ephedra internet explorer wont connect to internet what is a non compete clause x box rainbow six 3 cheat code kyocera ringtone article discipline in school pension health phoenix az. real estate precision flight controls inc playing music on psp myspace symbol text marriot singapore hotel leathers clothing to beat the child was bad enough tracker cars angelina jolie naked pic international freight forwarding uk software for cnc national labour market statistics also as known madonna rock metformin online buy tamiflu carisoprodol landscape phoenix services removing moles australia discount tours personalized kid toy order fluoxetine mortgage lending companies xhtml form elements speaking trumpet apartment city downtown iowa screenshots vista window assurance empire general life underwriter salary ip address location software patriots helmets diflucan online small in ground pool airport logan map mortar tile mens medium hair styles evolution midi controllers theme of as i lay dying epilepsy brain disorder 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.