Talk:String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>Bale
No edit summary
 
(56 intermediate revisions by 33 users not shown)
Line 1: Line 1:
[http://eyeh8everywon.50webs.com/pt-cruiser8.htm pt cruiser 22] [http://rzd.50webs.com/www-cislscuola/ www cislscuola lombardia it] [http://rjdudak.50webs.com/description/uomo-in5.htm uomo in casa] [http://lovereceiver.50webs.com/description/Orsi-gay1/ orsi gay] [http://greenquotebook.50webs.com/shandi.htm shandi] [http://rjdudak.50webs.com/description/audi-a118.htm audi a3 130] [http://rjdudak.50webs.com/description/jail-bird.htm jail bird man] [http://kagomeshuko.50webs.com/text/esopo/ esopo] [http://rzd.50webs.com/cucina-a/ cucina a legna] [http://greenquotebook.50webs.com/festa-a.htm festa a hollywood per xbox live] [http://mentalitch.50webs.com/topic/ca-phe.htm ca phe thanh da] [http://lesliesecho.50webs.com/grundig-satellit.html grundig satellit] [http://amandab.50webs.com/blog/unnao/ unnao] [http://amandab.50webs.com/blog/quark-xpress3/ quark xpress 6 patch] [http://efrosine.50webs.com/directory/monitor-70/ monitor 17 sony s] [http://lavinyacreates.50webs.com/html/walter-tobagi/ walter tobagi] [http://deedeecam.50webs.com/blog/km-28/ km 0 tv 185] [http://helenadole.50webs.com/modica-it.htm modica it] [http://moxivad.50webs.com/web/auto-lexus.html auto lexus] [http://mentalitch.50webs.com/topic/www-alldatazz1.htm www alldatazz com] [http://piraticalman.50webs.com/dpi-tavolette.html dpi tavolette grafiche] [http://rjdudak.50webs.com/description/takie-czarne.htm takie czarne oczy] [http://greenquotebook.50webs.com/gorilla-nebbia.htm gorilla nebbia] [http://lavinyacreates.50webs.com/html/ostrica/ ostrica] [http://greenquotebook.50webs.com/pedali-ciclismo.htm pedali ciclismo] [http://greenquotebook.50webs.com/longwood.htm longwood] [http://piraticalman.50webs.com/acer50.html acer 1600] [http://lovereceiver.50webs.com/description/ludwig-van10/ ludwig van beethoven piano concertos n 2 4] [http://moxivad.50webs.com/web/camera-savona.html camera savona] [http://deedeecam.50webs.com/blog/rischioso-inganno/ rischioso inganno] [http://ammjong.50webs.com/web/chario-premium.html chario premium] [http://rjdudak.50webs.com/description/get-tangled.htm get tangled up in me] [http://viktoza.50webs.com/new/win-mx9/ win mx in itaiano] [http://piraticalman.50webs.com/conoscere-ragazza.html conoscere ragazza russa] [http://lovereceiver.50webs.com/description/robbie-williams27/ robbie williams music box biographical collection] [http://mentalitch.50webs.com/topic/televisori-lcd56.htm televisori lcd philips pixel plus 2] [http://kagomeshuko.50webs.com/text/www-goglee/ www goglee om] [http://lovereceiver.50webs.com/description/kthd/ kthd530 512] [http://moxivad.50webs.com/web/www-marinamilitare.html www marinamilitare it] [http://efrosine.50webs.com/directory/oroscopo-settimanale/ oroscopo settimanale] [http://helenadole.50webs.com/huey-p.htm huey p newton] [http://kagomeshuko.50webs.com/text/wireless-bridge2/ wireless bridge] [http://mirnaladonyax.50webs.com/data/dudinka.html dudinka] [http://kagomeshuko.50webs.com/text/ich-liebe/ ich liebe deutsche land] [http://lavinyacreates.50webs.com/html/nord-sud1/ nord sud ovest] [http://piraticalman.50webs.com/etro-uomo.html etro uomo] [http://moxivad.50webs.com/web/yentai.html yentai] [http://viktoza.50webs.com/new/fotografa/ fotografa] [http://efrosine.50webs.com/directory/rony-size/ rony size] [http://helenadole.50webs.com/nen-jiang.htm nen jiang] [http://rzd.50webs.com/backstreet-boys10/ backstreet boys dvd] [http://amandab.50webs.com/blog/murolo-roberto/ murolo roberto] [http://vanatru.50webs.com/new/safri-duo4/ safri duo all the people in the world] [http://lesliesecho.50webs.com/in-vacanza3.html in vacanza da una vita] [http://amandab.50webs.com/blog/canciones-de16/ canciones de avril lavigne] [http://rzd.50webs.com/la-boutique/ la boutique della casa] [http://helenadole.50webs.com/biglietti-falsi.htm biglietti falsi vasco] [http://mirnaladonyax.50webs.com/data/epson-c23.html epson c62 cartuccia] [http://helenadole.50webs.com/ragazza-giapponesi.htm ragazza giapponesi gratis] [http://lavinyacreates.50webs.com/html/frigoriferi-rex7/ frigoriferi rex rd 20 s] [http://moxivad.50webs.com/web/mani-di2.html mani di fata it] [http://greenquotebook.50webs.com/aiwa-radio.htm aiwa radio] [http://lovereceiver.50webs.com/description/sistema-solare/ sistema solare] [http://mirnaladonyax.50webs.com/data/katia-nuda1.html katia nuda del grande fratello] [http://eyeh8everywon.50webs.com/santa-fe5.htm santa fe hotel] [http://rjdudak.50webs.com/description/capitan-kidd.htm capitan kidd] [http://lavinyacreates.50webs.com/html/adidas-adi1/ adidas adi racer low] [http://vanatru.50webs.com/new/exilim-z7/ exilim z40] [http://missmane.50webs.com/schede-madri71/ schede madri amd dfi] [http://amandab.50webs.com/blog/profumi-maschili/ profumi maschili] [http://mirnaladonyax.50webs.com/data/wright-basil.html wright basil] [http://ammjong.50webs.com/web/testo-di115.html testo di magica la notte] [http://eyeh8everywon.50webs.com/caps-serena.htm caps serena grandi] [http://lavinyacreates.50webs.com/html/transceiver-aui/ transceiver aui rj 45] [http://mentalitch.50webs.com/topic/raccoglitori-a1.htm raccoglitori a 3 anelli] [http://mentalitch.50webs.com/topic/big-air.htm big air] [http://missmane.50webs.com/pian-dei/ pian dei cortini] [http://amandab.50webs.com/blog/vernale/ vernale] [http://mirnaladonyax.50webs.com/data/elda-locatelli.html elda locatelli] [http://efrosine.50webs.com/directory/fotografia-de1/ fotografia de mujeres negras de africa] [http://kagomeshuko.50webs.com/text/siemens-s6/ siemens s 440] [http://moxivad.50webs.com/web/missa.html missa] [http://vanatru.50webs.com/new/nissan-ravenna/ nissan ravenna] [http://viktoza.50webs.com/new/orchstra/ orchstra] [http://efrosine.50webs.com/directory/far-cry2/ far cry soluzione] [http://ammjong.50webs.com/web/stajl.html stajl] [http://viktoza.50webs.com/new/www-folha1/ www folha com] [http://lesliesecho.50webs.com/sanaga-haute.html sanaga haute] [http://ammjong.50webs.com/web/freud-prodotti1.html freud prodotti punte seghe] [http://mirnaladonyax.50webs.com/data/ecommerce-shopping.html ecommerce shopping cart] [http://helenadole.50webs.com/vanbasco-s.htm vanbasco s karaoke player] [http://piraticalman.50webs.com/hp-centrino4.html hp centrino 1 5ghz] [http://amandab.50webs.com/blog/vivavoce-panasonic/ vivavoce panasonic] [http://lesliesecho.50webs.com/scuola-danza1.html scuola danza classica torino] [http://rjdudak.50webs.com/description/tomtom-go20.htm tomtom go mappe] [http://lovereceiver.50webs.com/description/karlfeldt-erik/ karlfeldt erik axel] [http://missmane.50webs.com/server-stampa/ server stampa] [http://moxivad.50webs.com/web/canon61.html canon 580] [http://vanatru.50webs.com/new/mi-ritorni/ mi ritorni in mente] [http://lovereceiver.50webs.com/description/rsmmc-per3/ rsmmc per nokia 6680] [http://greenpoint.50webs.com/html/i-prova/ i prova scritta esame di stato] [http://greenpoint.50webs.com/html/olympus-camedia9/ olympus camedia c 360 zoom] [http://scruffytom.50webs.com/topic/geforce-ultra.html geforce ultra sli] [http://jennygray.50webs.com/blog/bilbana/ bilbana] [http://jimmymnemonic.50webs.com/pc-dekstop.html pc dekstop] [http://poetoams.50webs.com/web/hotel-a12/ hotel a rovaniemi] [http://jimmymnemonic.50webs.com/consumption-junction.html consumption junction] [http://revjo.50webs.com/view/bmw-k1/ bmw k 1100] [http://missirish9.50webs.com/giornale-la.htm giornale la sicilia] [http://annetinternet.50webs.com/lib/spartiti-dei.htm spartiti dei led zeppelin] [http://sirpengalot.50webs.com/mtc/ mtc] [http://annetinternet.50webs.com/lib/calendario-8.htm calendario 2006 francesco arca] [http://sirpengalot.50webs.com/entra-subito/ entra subito] [http://anga12.50webs.com/content/studio-mediasuite/ studio mediasuite] [http://sirpengalot.50webs.com/s3/ s 40] [http://revjo.50webs.com/view/bruciore-piede/ bruciore piede sinistro] [http://agarvey.50webs.com/blog/notizia-e.htm notizia e media] [http://poetoams.50webs.com/web/ragazzo-bello/ ragazzo bello foto] [http://chaoticide.50webs.com/text/get-out/ get out jojo] [http://missirish9.50webs.com/noce-moscata.htm noce moscata] [http://almightyshippo.50webs.com/web/vocabolario-cinese.html vocabolario cinese] [http://poetoams.50webs.com/web/albergo-economici2/ albergo economici atene] [http://poetoams.50webs.com/web/mezzogiorno-e/ mezzogiorno e mezzo di fuoco] [http://poetofdreams.50webs.com/blog/amore-psiche.html amore psiche] [http://revjo.50webs.com/view/software-mac/ software mac] [http://anga12.50webs.com/content/ricetta-tarallo/ ricetta tarallo] [http://wannachange.50webs.com/content/auto-cross/ auto cross] [http://jimmymnemonic.50webs.com/annuncio-telefono.html annuncio telefono] [http://anga12.50webs.com/content/to-name/ to name ai] [http://watchmegirls.50webs.com/topic/manga-porno2.htm manga porno gratuiti] [http://missirish9.50webs.com/photos-pac.htm photos 2pac] [http://sirpengalot.50webs.com/midland2/ midland 18] [http://chaoticide.50webs.com/text/gods/ gods] [http://wannachange.50webs.com/content/esercitazioni-di/ esercitazioni di analisi matematica 1] [http://nonsmoker.50webs.com/data/pre-pagato.htm pre pagato mobile] [http://poetofdreams.50webs.com/blog/il-libraccio.html il libraccio] [http://scruffytom.50webs.com/topic/nomadi-del.html nomadi del canto] [http://poetofdreams.50webs.com/blog/foto-annuncio6.html foto annuncio coppia] [http://deeahblita.50webs.com/heil-tweeter/ heil tweeter] [http://nonsmoker.50webs.com/data/assicurazione-modena.htm assicurazione modena] [http://poetofdreams.50webs.com/blog/faenza.html faenza] [http://sirpengalot.50webs.com/bajar-musica1/ bajar musica regueton] [http://insomniashe.50webs.com/data/infradito-sundek/ infradito sundek] [http://chaoticide.50webs.com/text/stcc/ stcc] [http://scruffytom.50webs.com/topic/driver-motorola13.html driver motorola c450] [http://annetinternet.50webs.com/lib/athlon-18.htm athlon 64 3200 venice tray] [http://almightyshippo.50webs.com/web/immagini-festa.html immagini festa della mamma] [http://agarvey.50webs.com/blog/brigantino.htm brigantino] [http://revjo.50webs.com/view/nino-besozzi/ nino besozzi] [http://agarvey.50webs.com/blog/la-strada5.htm la strada del crimine] [http://scruffytom.50webs.com/topic/opere-di3.html opere di salvatore quasimodo] [http://anga12.50webs.com/content/tiki-thong/ tiki thong] [http://jennygray.50webs.com/blog/alice-oggi/ alice oggi] [http://watchmegirls.50webs.com/topic/il-gladiatore3.htm il gladiatore 2] [http://poetofdreams.50webs.com/blog/hp-cavo.html hp cavo alimentazione] [http://revjo.50webs.com/view/inferno-a1/ inferno a caracas] [http://poetoams.50webs.com/web/baraldi-block/ baraldi block filter] [http://chaoticide.50webs.com/text/menopon-gallinae/ menopon gallinae] [http://wannachange.50webs.com/content/www-rey/ www rey com] [http://insomniashe.50webs.com/data/historia-del2/ historia del basket] [http://anga12.50webs.com/content/daewoo-dhc/ daewoo dhc x100e] [http://annetinternet.50webs.com/lib/stampe-colorate.htm stampe colorate] [http://mingislazydork.50webs.com/slot-macchina1/ slot macchina slot] [http://watchmegirls.50webs.com/topic/borgaro.htm borgaro] [http://nonsmoker.50webs.com/data/telefono-cellulare3.htm telefono cellulare] [http://chaoticide.50webs.com/text/gamberetti-tartarughe/ gamberetti tartarughe] [http://agarvey.50webs.com/blog/www-petia.htm www petia ru] [http://sirpengalot.50webs.com/pan-store/ pan store] [http://nonsmoker.50webs.com/data/novara-hotel.htm novara hotel] [http://wannachange.50webs.com/content/download-free2/ download free video] [http://mingislazydork.50webs.com/e-io/ e io mi gioco la bambina] [http://wannachange.50webs.com/content/ministero-delle2/ ministero delle politiche agricole e for] [http://annetinternet.50webs.com/lib/biglietto-aereo13.htm biglietto aereo bilbao] [http://jimmymnemonic.50webs.com/dvd-key.html dvd key] [http://agarvey.50webs.com/blog/ivrylabataille.htm ivrylabataille] [http://jimmymnemonic.50webs.com/hoppa-hoppa.html hoppa hoppa reiter] [http://anga12.50webs.com/content/parla-piu/ parla piu piano lyrics] [http://deeahblita.50webs.com/riprese/ riprese] [http://jimmymnemonic.50webs.com/heinrich.html heinrich] [http://deeahblita.50webs.com/nudi-a/ nudi a cavallo] [http://deeahblita.50webs.com/mirc-chat/ mirc chat] [http://insomniashe.50webs.com/data/montaggio-a/ montaggio a secco] [http://poetoams.50webs.com/web/televisione-lcd2/ televisione lcd 19 pollici] [http://greenpoint.50webs.com/html/kia-carens/ kia carens 20] [http://revjo.50webs.com/view/gurgaon/ gurgaon] [http://mingislazydork.50webs.com/testo-di22/ testo di dragostea din tei] [http://nonsmoker.50webs.com/data/ht-videoproiettori.htm ht1000 videoproiettori] [http://almightyshippo.50webs.com/web/per-amore2.html per amore di poppea] [http://jennygray.50webs.com/blog/caldaie-vai/ caldaie vai] [http://mingislazydork.50webs.com/gianna-freccia/ gianna freccia] [http://jimmymnemonic.50webs.com/rainbow-miles.html rainbow miles] [http://watchmegirls.50webs.com/topic/ogliastra-servizi.htm ogliastra servizi marittimi] [http://poetofdreams.50webs.com/blog/futurama-xxx.html futurama xxx] [http://missirish9.50webs.com/toscana-hotel.htm toscana hotel saturnia] [http://revjo.50webs.com/view/gold-minar/ gold minar] [http://annetinternet.50webs.com/lib/sex-miss.htm sex miss] [http://almightyshippo.50webs.com/web/ibm.html ibm 1334] [http://jimmymnemonic.50webs.com/ragazze-di5.html ragazze di campagna] [http://chaoticide.50webs.com/text/l-e/ l e luci di natale pezzali] [http://scruffytom.50webs.com/topic/dio-come.html dio come te amo] 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.
Line 50: Line 50:


I personally haven't used it. Would be used in parsing a page by hand.
I personally haven't used it. Would be used in parsing a page by hand.
== Regular expressions ==
Finally! As of this moment, every single function has a page on this wiki except for the regular expression functions. ''(Much cheering!)'' Part of the problem with making pages for them is that a whole ream of background information is necessary to use them. I can see several approaches that we can take to this. I hope that we can discuss which tact to take:
#Create a new category and page for regular expressions where we discuss how to use them in detail.
#At the top of the Regular expressions section on this page, we post a link to another site that discusses how to use them. Obviously this is easiest. Then we assume that information is understood by the reader.
#* http://www.regular-expressions.info/
#* http://java.sun.com/docs/books/tutorial/essential/regex/index.html
#Assume information about the nature of regular expressions and how to use regular expression functions is both known and just discuss the specifics of each function.
Personally, I favor creating a page for regular expressions which starts with a link to a site that explains how to create regular expressions. Then the page explains how they can be used in ash.
--[[User:Bale|Bale]] 10:01, 6 May 2010 (UTC)
I'm leaning toward not adding in another category on the main page; it's getting cluttered as-is. However, I'm 100% the idea of linking to a dedicated page with more info & links. For the user comfortable with regex, they can go to the strings page and just follow links. For others, they can go to the regex page first. However, I'm not a programmer, so I don't know if most would consider regex to be a sub-set of string handling, or its own category. I'd go by whatever is considered "standard" for that.
If we go with complete separation, I'd probably want to have a link to said page on the string handling page, and perhaps not even include it on the Main Page. I dunno. Honestly, I'm fine leaving this to whoever feels comfortable enough with regex to add said function pages.
Whichever approach is taken, I agree that we shouldn't include all of the background info on each page. Matche(r)s, groups, etc. should be briefly defined on their specific pages, but otherwise left to a general description page or assumed to be known with references provided (on the category / sub-category page). Explaining each concept on every page is a bit absurd. (It would be like giving a definition of string on every function page that accepts a parameter of or returns a string; we have other "general info" pages for this reason.)
Also, congrats & thanks on reaching this major milestone! --[[User:StDoodle|StDoodle (#1059825)]] 15:48, 6 May 2010 (UTC)
* Good points. Regexp are a subset of string handling so we can keep them on that page, but link to a page of regexp information at the top of the regexp page. If we decide to have regexp information on this site. That would be a pretty good solution. How much detail should we go into on the regexp page? Just basic information and a few links for the user to learn more? Or just assume that they are understood as well as string? --[[User:Bale|Bale]] 21:11, 6 May 2010 (UTC)
The way you're currently going with is is a.o.k. by me. I wouldn't add too much to the dedicated page; I'd prefer additional tutorials & reference material to "original" content, for the most part. Mostly 'cause I see people fitting into the following groups re: regex;
* Those who will never get it; it doesn't matter what we do for this group
* Those who already get it; again, doesn't matter what we do
* Those who are capable of getting it, given adequate info
** Adequate is, for the most of people in this category, going to be far more than we really want to get in to (I know some people who are very comfortable with regex who STILL keep a cheat-cheat or bookmark for some stuff)
** I don't want to spend 1k wiki-hours (that's an official metric now, dontchaknow?) on stuff that's been done well elsewhere when there's a lot of mafia (non-ash) stuff left to document; priorities, bang-for-your-buck, etc.
So yeah, keep up what you're doing basically. Flesh out quick coverage of the basics on the Regex page, add more links if you find ones that may also be helpful, but beyond that, don't worry too much about it. --[[User:StDoodle|StDoodle (#1059825)]] 04:09, 7 May 2010 (UTC)
Edit to add:
There is one minor additional note. As you note on the Regex page & I've seen elsewhere, ash regex is just a wrapper for java regex. As such, there's absolutely no reason to cover the same ground (I'm fairly sure java has better documentation resources than mafia :P ) EXCEPT it might be nice to give some "advanced info" that points out exactly how the ash equivalents map to their java counterparts. This isn't high-priority, but is the only thing beyond links and very basic coverage that I can see being worthwhile. --[[User:StDoodle|StDoodle (#1059825)]] 04:12, 7 May 2010 (UTC)
Do you think I'm adding too much detail? Should I trim back and rely on off-site tutorials? I think you can see right now about how much of a skim through regexes I'm planning to do. Should I skip it? --[[User:Bale|Bale]] 04:37, 7 May 2010 (UTC)
Well, first and foremost, don't worry a whole lot about having too much info, as long as it's accurate. I'm just saying that at the point that it stops flowing naturally and you have to stop and think hard about it, skim over the rest and point to tutorials. If the biggest flaw in this wiki ends up being that it duplicates information that can be learned elsewhere, I'll be able to live with that. --[[User:StDoodle|StDoodle (#1059825)]] 06:17, 7 May 2010 (UTC)
* LOL! Very philosophical of you. ^_^ --[[User:Bale|Bale]] 06:40, 7 May 2010 (UTC)

Latest revision as of 06:40, 7 May 2010

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.


Regular expressions

Finally! As of this moment, every single function has a page on this wiki except for the regular expression functions. (Much cheering!) Part of the problem with making pages for them is that a whole ream of background information is necessary to use them. I can see several approaches that we can take to this. I hope that we can discuss which tact to take:

  1. Create a new category and page for regular expressions where we discuss how to use them in detail.
  2. At the top of the Regular expressions section on this page, we post a link to another site that discusses how to use them. Obviously this is easiest. Then we assume that information is understood by the reader.
  3. Assume information about the nature of regular expressions and how to use regular expression functions is both known and just discuss the specifics of each function.

Personally, I favor creating a page for regular expressions which starts with a link to a site that explains how to create regular expressions. Then the page explains how they can be used in ash. --Bale 10:01, 6 May 2010 (UTC)

I'm leaning toward not adding in another category on the main page; it's getting cluttered as-is. However, I'm 100% the idea of linking to a dedicated page with more info & links. For the user comfortable with regex, they can go to the strings page and just follow links. For others, they can go to the regex page first. However, I'm not a programmer, so I don't know if most would consider regex to be a sub-set of string handling, or its own category. I'd go by whatever is considered "standard" for that.

If we go with complete separation, I'd probably want to have a link to said page on the string handling page, and perhaps not even include it on the Main Page. I dunno. Honestly, I'm fine leaving this to whoever feels comfortable enough with regex to add said function pages.

Whichever approach is taken, I agree that we shouldn't include all of the background info on each page. Matche(r)s, groups, etc. should be briefly defined on their specific pages, but otherwise left to a general description page or assumed to be known with references provided (on the category / sub-category page). Explaining each concept on every page is a bit absurd. (It would be like giving a definition of string on every function page that accepts a parameter of or returns a string; we have other "general info" pages for this reason.)

Also, congrats & thanks on reaching this major milestone! --StDoodle (#1059825) 15:48, 6 May 2010 (UTC)

  • Good points. Regexp are a subset of string handling so we can keep them on that page, but link to a page of regexp information at the top of the regexp page. If we decide to have regexp information on this site. That would be a pretty good solution. How much detail should we go into on the regexp page? Just basic information and a few links for the user to learn more? Or just assume that they are understood as well as string? --Bale 21:11, 6 May 2010 (UTC)


The way you're currently going with is is a.o.k. by me. I wouldn't add too much to the dedicated page; I'd prefer additional tutorials & reference material to "original" content, for the most part. Mostly 'cause I see people fitting into the following groups re: regex;

  • Those who will never get it; it doesn't matter what we do for this group
  • Those who already get it; again, doesn't matter what we do
  • Those who are capable of getting it, given adequate info
    • Adequate is, for the most of people in this category, going to be far more than we really want to get in to (I know some people who are very comfortable with regex who STILL keep a cheat-cheat or bookmark for some stuff)
    • I don't want to spend 1k wiki-hours (that's an official metric now, dontchaknow?) on stuff that's been done well elsewhere when there's a lot of mafia (non-ash) stuff left to document; priorities, bang-for-your-buck, etc.

So yeah, keep up what you're doing basically. Flesh out quick coverage of the basics on the Regex page, add more links if you find ones that may also be helpful, but beyond that, don't worry too much about it. --StDoodle (#1059825) 04:09, 7 May 2010 (UTC)

Edit to add:

There is one minor additional note. As you note on the Regex page & I've seen elsewhere, ash regex is just a wrapper for java regex. As such, there's absolutely no reason to cover the same ground (I'm fairly sure java has better documentation resources than mafia :P ) EXCEPT it might be nice to give some "advanced info" that points out exactly how the ash equivalents map to their java counterparts. This isn't high-priority, but is the only thing beyond links and very basic coverage that I can see being worthwhile. --StDoodle (#1059825) 04:12, 7 May 2010 (UTC)

Do you think I'm adding too much detail? Should I trim back and rely on off-site tutorials? I think you can see right now about how much of a skim through regexes I'm planning to do. Should I skip it? --Bale 04:37, 7 May 2010 (UTC)

Well, first and foremost, don't worry a whole lot about having too much info, as long as it's accurate. I'm just saying that at the point that it stops flowing naturally and you have to stop and think hard about it, skim over the rest and point to tutorials. If the biggest flaw in this wiki ends up being that it duplicates information that can be learned elsewhere, I'll be able to live with that. --StDoodle (#1059825) 06:17, 7 May 2010 (UTC)

  • LOL! Very philosophical of you. ^_^ --Bale 06:40, 7 May 2010 (UTC)