Talk:String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>Bale
No edit summary
 
(113 intermediate revisions by 74 users not shown)
Line 1: Line 1:
[http://mejordan.ifrance.com/kljuc-zivota.htm kljuc zivota] [http://maramsde.ifrance.com/directory/under-word/ under word] [http://lokelseyn.ifrance.com/lavatrici-carica3/ lavatrici carica frontale] [http://trermer.ifrance.com/small/www-joob/ www joob it] [http://nipierre.ifrance.com/articles/albergo-economici5.htm albergo economici parma] [http://lokelseyn.ifrance.com/barracuda-5/ barracuda 7200 8 400 gb] [http://sthuckst.ifrance.com/giogi-d/ giogi d alessio] [http://trermer.ifrance.com/index1_500.html site] [http://trermer.ifrance.com/index0_500.html home] [http://bekleem.ifrance.com/content/earth-wind1/ earth wind and fire] [http://bekleem.ifrance.com/content/feels-like2/ feels like home nora jones] [http://maramsde.ifrance.com/directory/casio-ex3/ casio ex z10] [http://maramsde.ifrance.com/directory/king-of20/ king of hill 2] [http://lokelseyn.ifrance.com/sfdk/ sfdk] [http://mejordan.ifrance.com/xxxvidios.htm xxxvidios] [http://mejordan.ifrance.com/index2_500.html page] [http://nipierre.ifrance.com/articles/videos-asesinatos.htm videos asesinatos] [http://mejordan.ifrance.com/un-mondo3.htm un mondo fantastico] [http://nipierre.ifrance.com/articles/rem-out.htm rem out of time] [http://mejordan.ifrance.com/bussines-plan.htm bussines plan] [http://lokelseyn.ifrance.com/michel-petrucciani/ michel petrucciani power of three] [http://nipierre.ifrance.com/articles/mascia-backstage.htm mascia backstage] [http://bekleem.ifrance.com/content/terra-lontana/ terra lontana] [http://nipierre.ifrance.com/articles/parafrasi-della1.htm parafrasi della ginestra] [http://trermer.ifrance.com/index4_250.html url] [http://trermer.ifrance.com/index0_500.html home] [http://trermer.ifrance.com/small/roma-vacanze/ roma vacanze] [http://maramsde.ifrance.com/directory/acquisto-pc/ acquisto pc portatili] [http://bekleem.ifrance.com/content/badaboom/ badaboom] [http://trermer.ifrance.com/index0_500.html home] [http://veredda.ifrance.com/resources/mani-sudate.htm mani sudate] [http://bekleem.ifrance.com/content/www-osito/ www osito com] [http://mejordan.ifrance.com/index1_1000.html site] [http://mejordan.ifrance.com/videocamere-hd.htm videocamere hd] [http://bekleem.ifrance.com/content/la-notte6/ la notte del desiderio] [http://nipierre.ifrance.com/articles/trio-pliko1.htm trio pliko p3 completo] [http://mejordan.ifrance.com/index4_1000.html index] [http://sthuckst.ifrance.com/tetraciclina/ tetraciclina] [http://maramsde.ifrance.com/directory/masterizzatore-per1/ masterizzatore per dvd notebook] [http://trermer.ifrance.com/small/accessori-nikon2/ accessori nikon 4500] [http://sthuckst.ifrance.com/giochi-per20/ giochi per pc bambini] [http://mejordan.ifrance.com/too-black.htm too black] [http://nipierre.ifrance.com/articles/toner6.htm toner 4250] [http://veredda.ifrance.com/resources/antipatico.htm antipatico] [http://nipierre.ifrance.com/index1_500.html link] [http://maramsde.ifrance.com/directory/sauveur-joseph/ sauveur joseph] [http://sthuckst.ifrance.com/calendario-cannavaro/ calendario cannavaro 2002] [http://mejordan.ifrance.com/cubo-rubik.htm cubo rubik] [http://veredda.ifrance.com/resources/jenny-la.htm jenny la tennista] [http://veredda.ifrance.com/index2_1000.html homepage] [http://mejordan.ifrance.com/index0_250.html link] [http://lokelseyn.ifrance.com/chichos/ chichos] [http://sthuckst.ifrance.com/vibratori-per/ vibratori per donne] [http://nipierre.ifrance.com/articles/prova-di3.htm prova di matematica esami di stato 2004] [http://trermer.ifrance.com/small/creepshow/ creepshow 2] [http://sthuckst.ifrance.com/kemmerer-edwin/ kemmerer edwin walter] [http://lokelseyn.ifrance.com/film-orrore/ film orrore] [http://maramsde.ifrance.com/directory/dipartimento-servizi/ dipartimento servizi sociali di bari] [http://nipierre.ifrance.com/index2_500.html index] [http://trermer.ifrance.com/small/mullins/ mullins] [http://nipierre.ifrance.com/articles/lcd-44.htm lcd 19 svideo] [http://maramsde.ifrance.com/index2_500.html site] [http://trermer.ifrance.com/small/paura-e/ paura e delirio] [http://mejordan.ifrance.com/lords-of2.htm lords of magic] [http://bekleem.ifrance.com/index3_250.html home] [http://mejordan.ifrance.com/donne-con6.htm donne con uomo] [http://bekleem.ifrance.com/content/nav-system/ nav system] [http://lokelseyn.ifrance.com/index2_250.html homepage] [http://bekleem.ifrance.com/content/ati-radeon50/ ati radeon 9550 128 mb ddr agp 8x] [http://maramsde.ifrance.com/directory/lido-estensi/ lido estensi] [http://veredda.ifrance.com/resources/giochi-di61.htm giochi di avventura con piu livelli] [http://trermer.ifrance.com/small/tonetto/ tonetto] [http://trermer.ifrance.com/small/slide-alone/ slide alone side shifty] [http://trermer.ifrance.com/index1_500.html site] [http://nipierre.ifrance.com/articles/steffen-groth.htm steffen groth] [http://lokelseyn.ifrance.com/acrobat-2/ acrobat 7 full] [http://lokelseyn.ifrance.com/laica-legno/ laica legno] [http://maramsde.ifrance.com/directory/video-dj2/ video dj ross emotion] [http://bekleem.ifrance.com/content/ragazze-polacche/ ragazze polacche] [http://lokelseyn.ifrance.com/anarhynchus/ anarhynchus] [http://nipierre.ifrance.com/articles/eroi-del.htm eroi del 68] [http://bekleem.ifrance.com/content/csa-nuoro/ csa nuoro] [http://veredda.ifrance.com/resources/girl-fight.htm girl fight] [http://lokelseyn.ifrance.com/richmond-california/ richmond (california)] [http://bekleem.ifrance.com/index3_250.html home] [http://lokelseyn.ifrance.com/disco-parade/ disco parade 2004] [http://bekleem.ifrance.com/content/riciclo/ riciclo] [http://bekleem.ifrance.com/index2_1000.html site] [http://trermer.ifrance.com/index1_500.html site] [http://trermer.ifrance.com/small/xfx-/ xfx 6600 passive] [http://bekleem.ifrance.com/index2_1000.html site] [http://trermer.ifrance.com/small/ursus-nella/ ursus nella terra di fuoco] [http://bekleem.ifrance.com/content/barnes-thomas/ barnes thomas] [http://trermer.ifrance.com/small/kit-vivavoce8/ kit vivavoce bluetooth nokia] [http://sthuckst.ifrance.com/sodimm-2/ sodimm 256 pc2100] [http://bekleem.ifrance.com/content/www-noproxy/ www noproxy com] [http://bekleem.ifrance.com/content/zyxel-zyair2/ zyxel zyair g 220] [http://nipierre.ifrance.com/articles/indaco-dagli1.htm indaco dagli ochhi dal cielo] [http://lokelseyn.ifrance.com/dragonstea-traduzione/ dragonstea traduzione] [http://sthuckst.ifrance.com/scheda-video36/ scheda video output] [http://www.nvwp.org/help/files/fanhpc.html Fiditalia it] [http://cale.cc/xde/it/dflovl.html Casaidea it] [http://www.actionscript.ru/help/files/ujmsxg.html Italia chiamami] [http://www.actionscript.ru/help/files/qlidar.html Diavolette] [http://www.worthwhilehosting.com/banners/auto/kcaixi.html Castelli della loira] [http://www.notreligion.com/help/files/rprtpk.html Culi famosi] [http://www.startonlineweb.com/help/new/kpljer.html Elettrostimolatore casa vendita] [http://www.actionscript.ru/help/files/qxchks.html Contatore visite sito] [http://www.backtothebible.org/help/files/uknqpc.html Four star hotel brescia] [http://www.backtothebible.org/help/files/uvdoge.html Anita dark] [http://www.ccrs.uzh.ch/user/root/qnwdvb.html Modellismo dinamico elicottero] [http://www.notreligion.com/help/files/bpsdcn.html Milly dabbraccio] [http://www.priceisking.co.uk/skins/default/wlfxts.html Lettera dimissioni preavviso] [http://cale.cc/xde/it/eojkqp.html Carta biglietto visita] [http://cale.cc/xde/it/rgihnc.html Cheap cigarette] [http://www.backtothebible.org/help/files/sobhvt.html Sms augurio 18 anni] [http://www.startonlineweb.com/help/new/vbkstl.html Longines orologio] [http://www.nvwp.org/help/files/rxaxgu.html Schermo proiezione 400x300] [http://www.backtothebible.org/help/files/abdulg.html Xstream net] [http://www.ccrs.uzh.ch/user/root/vcbepl.html Il baratto] [http://cale.cc/xde/it/ivlrog.html Parigi shopping] [http://www.startonlineweb.com/help/new/mpsqcx.html Sexi film gratis] [http://www.actionscript.ru/help/files/mskteq.html Zoo sex video] [http://www.notreligion.com/help/files/vllrsr.html Orge%2bfoto] [http://www.backtothebible.org/help/files/gahfct.html Test conoscenza inglese] [http://rootos.idonea.cl/help/files/puitrb.html Reggia caserta] [http://www.ccrs.uzh.ch/user/root/gpulwk.html Voli low cost per budapest] [http://www.priceisking.co.uk/skins/default/vlsgux.html Frasi buonanotte] [http://www.startonlineweb.com/help/new/bavcmh.html Www winxclub com] [http://www.actionscript.ru/help/files/mrbmhw.html Pidocchio] [http://www.actionscript.ru/help/files/qalgkd.html Weight watchers dieta] [http://www.worthwhilehosting.com/banners/auto/crfxsg.html Discount engagement ring] [http://www.backtothebible.org/help/files/lslant.html Porno mogli] [http://www.backtothebible.org/help/files/bjeogj.html Hotel innsbruck] [http://www.hiidenkivenpaivakoti.fi/help/new/eubabo.html Termini imerese] [http://www.nvwp.org/help/files/ggkahl.html Cazzo di cavallo] [http://www.priceisking.co.uk/skins/default/finkrh.html Download programma] [http://www.backtothebible.org/help/files/cedacf.html Software di notazione musicale] [http://www.worthwhilehosting.com/banners/auto/raweew.html Hentay x] [http://www.priceisking.co.uk/skins/default/wqscmc.html Hotel loano] [http://www.backtothebible.org/help/files/jvtjqu.html Arredamento moderno] [http://www.nvwp.org/help/files/aiximl.html Fotocamera subacquee] [http://www.startonlineweb.com/help/new/letseq.html Hotel arbatax] [http://www.backtothebible.org/help/files/iuuchn.html Aeroporto linate] [http://www.actionscript.ru/help/files/bmblvn.html Toshiba tecra m3] [http://rootos.idonea.cl/help/files/cseuoa.html Manuale telefono fisso panasonic] [http://www.worthwhilehosting.com/banners/auto/nbrdlf.html Dottoresse troie] [http://www.hiidenkivenpaivakoti.fi/help/new/jhbxmv.html Sfondi occhi] [http://www.actionscript.ru/help/files/ilnrqn.html Palmare gps gsm qtek] [http://www.startonlineweb.com/help/new/getfvk.html Ambiente inquinamento atmosferico] [http://www.backtothebible.org/help/files/rqcpju.html Hollywood discoteca milano] [http://www.backtothebible.org/help/files/itgvbl.html Satellite dish] [http://www.hiidenkivenpaivakoti.fi/help/new/fuorvi.html Russian teen sex] [http://www.backtothebible.org/help/files/geusep.html Moooi lampada design] [http://www.ccrs.uzh.ch/user/root/vcqxir.html Residence isola d elba] [http://www.notreligion.com/help/files/nxxjos.html Goku che si tromba c18] [http://www.nvwp.org/help/files/gocbqq.html Piazza affare gruppo banca sella] [http://www.priceisking.co.uk/skins/default/oooidb.html Www nesquik it] [http://www.backtothebible.org/help/files/veppvv.html Google www lastminute tour com] [http://www.hiidenkivenpaivakoti.fi/help/new/aequmm.html Curare aneurisma] [http://www.priceisking.co.uk/skins/default/tkperi.html Espressionismo] [http://www.startonlineweb.com/help/new/qrnxaa.html Consegna fiore linea] [http://www.ccrs.uzh.ch/user/root/hroflc.html Midi karaoke canzone italiana gratis] [http://www.notreligion.com/help/files/cgjtnh.html Orologio gucci] [http://www.ccrs.uzh.ch/user/root/mxdose.html Animal porn] [http://www.startonlineweb.com/help/new/lnrene.html Prestiti subito] [http://www.backtothebible.org/help/files/jjhfvj.html Leucociti bassi] [http://cale.cc/xde/it/tvhxmb.html Cuore solitario] [http://www.priceisking.co.uk/skins/default/ferqxs.html Foto rubate sexy] [http://www.nvwp.org/help/files/arctpn.html Calpestamento] [http://www.priceisking.co.uk/skins/default/hcjlqk.html Serena garitta nuda] [http://www.backtothebible.org/help/files/glqakp.html Ministero trasporti] [http://www.hiidenkivenpaivakoti.fi/help/new/ikderu.html Gestione conto corrente] [http://www.actionscript.ru/help/files/kuxwkw.html Web cam gay gratis] [http://cale.cc/xde/it/tjmuwb.html Servizi fotografici] [http://www.hiidenkivenpaivakoti.fi/help/new/tmupkc.html Cariparma it] [http://www.priceisking.co.uk/skins/default/fpkmwb.html Albergo lione] [http://www.startonlineweb.com/help/new/pxvuic.html Acer travelmate] [http://rootos.idonea.cl/help/files/umtwbm.html Video shemale] [http://www.worthwhilehosting.com/banners/auto/cadolv.html Negozi pc] [http://www.priceisking.co.uk/skins/default/booixt.html Sylvie lubamba xxx] [http://www.backtothebible.org/help/files/jcerpo.html Orologio da parete] [http://cale.cc/xde/it/ratsrg.html Michelle diva futura] [http://cale.cc/xde/it/suroue.html Chery pornostar] [http://www.notreligion.com/help/files/cdcrer.html Residence liguria alassio] [http://www.hiidenkivenpaivakoti.fi/help/new/rjikmq.html Slurp] [http://www.backtothebible.org/help/files/vkahxe.html Dizionario tedesco italiano on line] [http://www.startonlineweb.com/help/new/wcpiph.html Stanza affitto roma] [http://www.startonlineweb.com/help/new/kssjgm.html Carlomagni aliceposta it] [http://www.ccrs.uzh.ch/user/root/xgmtne.html Aloe arborescens] [http://www.priceisking.co.uk/skins/default/qxhbgq.html Storie erotiche] [http://www.ccrs.uzh.ch/user/root/dpfwbw.html Belle fighe sudamericane] [http://www.backtothebible.org/help/files/ojnriv.html Londra intrattenimento] [http://cale.cc/xde/it/bmudpw.html Baby doll] [http://www.hiidenkivenpaivakoti.fi/help/new/nggcea.html Classifiche canzoni straniere] [http://www.worthwhilehosting.com/banners/auto/wbqgap.html Consulenza marketing comunicazione] [http://www.hiidenkivenpaivakoti.fi/help/new/efrsst.html Corriere adriatico] [http://www.ccrs.uzh.ch/user/root/bwxacf.html Vacanza francia] [http://www.worthwhilehosting.com/banners/auto/apvfjk.html Troia it] [http://www.worthwhilehosting.com/banners/auto/hidsir.html Asia wet pussy play rs] 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)