Difference between revisions of "Talk:String Handling Routines"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
 
(84 intermediate revisions by 55 users not shown)
Line 1: Line 1:
[http://kaygigi.50webs.com/articles/hotel-lourdes/ hotel lourdes] [http://howquickly.50webs.com/articles/somewher-over.htm somewher over the rainbow] [http://tigerlilly2063.50webs.com/lavastoviglie-a1/ lavastoviglie a scomparsa totale] [http://howquickly.50webs.com/articles/lupo1.htm lupo 1000] [http://starbestfik.50webs.com/topic/cartolina-elettroniche1/ cartolina elettroniche per bambini] [http://ryolove.50webs.com/resources/fabbrica-attrezzature.htm fabbrica attrezzature congressi] [http://exlerrss.50webs.com/text/roma-non1.htm roma non fa la stupida stasera] [http://brittpach7.50webs.com/text/magik-key.htm magik key] [http://tigerlilly2063.50webs.com/appunto-ragioneria/ appunto ragioneria] [http://gekijuls.50webs.com/resources/cucina-ricetta.htm cucina ricetta] [http://kaygigi.50webs.com/articles/traghetti-sardegna/ traghetti sardegna navi tirrenia] [http://kaygigi.50webs.com/articles/zelda-memory/ zelda memory] [http://kaygigi.50webs.com/articles/noleggio-auto3/ noleggio auto torino] [http://anetaspb.50webs.com/content/milan-foto.htm milan foto ai giocatori 88] [http://ryolove.50webs.com/resources/brescia-rosella.htm brescia rosella] [http://devthemagister.50webs.com/web/i-blieve.htm i blieve i can fly] [http://terrastaoid.50webs.com/resources/falam/ falam] [http://anetaspb.50webs.com/content/giocatori-svincolati.htm giocatori svincolati dell atalanta] [http://ir4ik.50webs.com/view/www-marcopoloshop.htm www marcopoloshop it] [http://kruppkw.50webs.com/new/musiche-scozzesi/ musiche scozzesi] [http://anetaspb.50webs.com/content/video-modella.htm video modella] [http://starbestfik.50webs.com/topic/once-upon1/ once upon a time a december] [http://brittpach7.50webs.com/text/vibratore-devastante.htm vibratore devastante] [http://devthemagister.50webs.com/web/plymouth-uni.htm plymouth uni] [http://anetaspb.50webs.com/content/razze-bovine.htm razze bovine] [http://bookishfellow.50webs.com/new/piatto-batteria.htm piatto batteria] [http://levplatonov.50webs.com/content/gabicce-mare/ gabicce mare] [http://sneezingpops.50webs.com/blog/monitor-lcd22/ monitor lcd 20 1] [http://dragonchan.50webs.com/description/radio-sveglia1/ radio sveglia proiezione] [http://tigerlilly2063.50webs.com/ludmilla-nuda/ ludmilla nuda] [http://pulema.50webs.com/resources/film-il1/ film il merlo maschio] [http://brittpach7.50webs.com/text/lettore-mp58.htm lettore mp3 thomson] [http://ryolove.50webs.com/resources/mino-reitano.htm mino reitano] [http://gekijuls.50webs.com/resources/franchising-online.htm franchising online] [http://terrastaoid.50webs.com/resources/scansione-on/ scansione on line] [http://terrastaoid.50webs.com/resources/fondotinta-pelli/ fondotinta pelli grasse] [http://kruppkw.50webs.com/new/amour-denfance/ amour denfance] [http://devthemagister.50webs.com/web/giradischi-denon.htm giradischi denon dp] [http://exlerrss.50webs.com/text/mp-usb3.htm mp3 usb player 1 gb] [http://devthemagister.50webs.com/web/storia-e.htm storia e pensiero di jean piaget] [http://pulema.50webs.com/resources/tatoo-foto/ tatoo foto gratis] [http://bookishfellow.50webs.com/new/gloria-constantino.htm gloria constantino perez] [http://brittpach7.50webs.com/text/sony-14.htm sony  kep42mrx1] [http://gekijuls.50webs.com/resources/ciao-amico1.htm ciao amico] [http://anetaspb.50webs.com/content/dester.htm dester] [http://iguanalady.50webs.com/plotter-hp2.htm plotter hp 500 a1] [http://ir4ik.50webs.com/view/modem-adsl11.htm modem adsl con interfaccia usb e] [http://bookishfellow.50webs.com/new/esibiz.htm esibiz] [http://ir4ik.50webs.com/view/mutuo-case.htm mutuo case rate] [http://terrastaoid.50webs.com/resources/frasidamore/ frasidamore] [http://kaygigi.50webs.com/articles/tito/ tito] [http://levplatonov.50webs.com/content/eurosk/ eurosk] [http://pulema.50webs.com/resources/www-muyzorras/ www muyzorras com] [http://pulema.50webs.com/resources/feel-feel/ feel feel] [http://sneezingpops.50webs.com/blog/negozi-sport/ negozi sport] [http://kaygigi.50webs.com/articles/wwww-mappy/ wwww mappy com] [http://kaygigi.50webs.com/articles/video-jeanne/ video jeanne tripplehorn] [http://starbestfik.50webs.com/topic/volkova/ volkova] [http://exlerrss.50webs.com/text/versione-cornelio.htm versione cornelio nepote] [http://tigerlilly2063.50webs.com/cinque-ore/ cinque ore in contanti] [http://levplatonov.50webs.com/content/child-development/ child development] [http://cheburashka21.50webs.com/html/camerette/ camerette] [http://kruppkw.50webs.com/new/movenpick-sharm/ movenpick sharm] [http://kaygigi.50webs.com/articles/hercules-fortissimo/ hercules fortissimo iv] [http://howquickly.50webs.com/articles/auricolare-nokia.htm auricolare nokia] [http://brittpach7.50webs.com/text/extreme-d.htm extreme 3d] [http://gekijuls.50webs.com/resources/wesling.htm wesling] [http://levplatonov.50webs.com/content/hey-ho/ hey ho lets go] [http://kaygigi.50webs.com/articles/www-maria1/ www maria de filipppi] [http://dragonchan.50webs.com/description/bluetooth-nokia/ bluetooth nokia 6680 auricolare] [http://dragonchan.50webs.com/description/galattica-autostoppisti/ galattica autostoppisti] [http://sneezingpops.50webs.com/blog/www-itelefonica/ www itelefonica com br] [http://ir4ik.50webs.com/view/mina-canta.htm mina canta battisti] [http://kruppkw.50webs.com/new/duble-dragon/ duble dragon] [http://dragonchan.50webs.com/description/gunman-chronicles/ gunman chronicles] [http://dragonchan.50webs.com/description/canon5/ canon 20 35] [http://levplatonov.50webs.com/content/file-modem/ file modem lucent] [http://devthemagister.50webs.com/web/philips-s1.htm philips 190s5 lcd] [http://exlerrss.50webs.com/text/fx3.htm fx 1050] [http://anetaspb.50webs.com/content/mole.htm mole] [http://terrastaoid.50webs.com/resources/mashall/ mashall] [http://terrastaoid.50webs.com/resources/settimana-bianche/ settimana bianche last minute] [http://pulema.50webs.com/resources/barbaresco-il/ barbaresco il bricco] [http://kaygigi.50webs.com/articles/minya-el/ minya el] [http://bookishfellow.50webs.com/new/lg-dvd4.htm lg dvd recorder dr 7400] [http://iguanalady.50webs.com/on-to.htm on to victory] [http://brittpach7.50webs.com/text/storia-di7.htm storia di sanremo] [http://tigerlilly2063.50webs.com/eli/ eli 77] [http://iguanalady.50webs.com/becher-johannes.htm becher johannes robert] [http://levplatonov.50webs.com/content/trova-il/ trova il testo di where is the love] [http://bookishfellow.50webs.com/new/batteria-creative.htm batteria creative] [http://pulema.50webs.com/resources/ritorno-alla/ ritorno alla laguna blu] [http://iguanalady.50webs.com/raccconti-di.htm raccconti di travestiti] [http://pulema.50webs.com/resources/full-monty/ full monty you sexy thing mp3] [http://sneezingpops.50webs.com/blog/vendesi-runner/ vendesi runner 125] [http://sneezingpops.50webs.com/blog/viacces/ viacces] [http://terrastaoid.50webs.com/resources/sms-da/ sms da inviare gratis] [http://brittpach7.50webs.com/text/addobbo-floreale.htm addobbo floreale] [http://pulema.50webs.com/resources/la-bocca/ la bocca] [http://cheburashka21.50webs.com/html/indesit/ indesit 35] [http://miraxcaorran.freehostia.com/lib/rock-nacional.htm rock nacional] [http://assaharp.freehostia.com/html/lettera-a1.htm lettera a breznev] [http://disexat.freehostia.com/articles/fiat-grande2/ fiat grande punto 1 3] [http://usverag-ekb.freehostia.com/small/in-a1/ in a while] [http://ms-beaeblebrox.freehostia.com/html/caldaia-legna.htm caldaia legna] [http://crackoaon.freehostia.com/Casalinghe-in1/ casalinghe in chatt] [http://macahi-neko.freehostia.com/valutare-auto/ valutare auto usata] [http://crackoaon.freehostia.com/paolo-pietrangeli/ paolo pietrangeli] [http://lesh1a1.freehostia.com/data/olimpiad.htm olimpiad] [http://ms-beaeblebrox.freehostia.com/html/spartiti-nelly.htm spartiti nelly furtado] [http://disexat.freehostia.com/articles/produzione-maglietta/ produzione maglietta] [http://lesh1a1.freehostia.com/data/ti-penso1.htm ti penso sempre] [http://assaharp.freehostia.com/html/lost-and.htm lost and found] [http://usverag-ekb.freehostia.com/small/vedelago/ vedelago] [http://ms-beaeblebrox.freehostia.com/html/fzs-fazer.htm fzs fazer] [http://macahi-neko.freehostia.com/trellian/ trellian] [http://miraxcaorran.freehostia.com/lib/disco-esterno2.htm disco esterno portatile] [http://juli8a.freehostia.com/new/nec-gx.htm nec 1770gx] [http://junkland-raed.freehostia.com/styles/kontra.htm kontra] [http://deathrays.freehostia.com/new/new-york22.htm new york newyork] [http://kieloida.freehostia.com/library/veneziano/ veneziano] [http://macahi-neko.freehostia.com/le-piccole/ le piccole ore] [http://chistoasya.freehostia.com/topic/grasse-taranto/ grasse taranto] [http://kieloida.freehostia.com/library/prestazioni-occasionali1/ prestazioni occasionali sesso] [http://juli8a.freehostia.com/new/i-neonati.htm i neonati foto] [http://kynaon.freehostia.com/library/ricoh-aficio13/ ricoh aficio 450] [http://juli8a.freehostia.com/new/trelew.htm trelew] [http://knave-aof-clubs.freehostia.com/view/reti-doghe1/ reti doghe legno] [http://juli8a.freehostia.com/new/foto-manuela1.htm foto manuela arcuri nuda] [http://macahi-neko.freehostia.com/atoll-ancona/ atoll ancona] [http://juli8a.freehostia.com/new/project-gotham1.htm project gotham] [http://paleshaadow.freehostia.com/text/smuji.htm smuji] [http://kynaon.freehostia.com/library/hitachi-10/ hitachi 32 pd5200] [http://geneocide.freehostia.com/lib/anno-2.htm anno 2118 progetto x] [http://kynaon.freehostia.com/library/testo-e10/ testo e traduzione modern times j five] [http://usverag-ekb.freehostia.com/small/www-laburra/ www laburra com] [http://ptisaa-jill.freehostia.com/cheap-flights/ cheap flights] [http://macahi-neko.freehostia.com/rca-vga/ rca vga accessori audio video] [http://disexat.freehostia.com/articles/goodnight-gigi/ goodnight gigi s] [http://junkland-raed.freehostia.com/styles/cdrom.htm cdrom] [http://knave-aof-clubs.freehostia.com/view/game-boy19/ game boy adbance] [http://usverag-ekb.freehostia.com/small/el-pam/ el pam pam] [http://kieloida.freehostia.com/library/vino-da/ vino da tavola] [http://ms-beaeblebrox.freehostia.com/html/superdotati-di.htm superdotati di colore] [http://knave-aof-clubs.freehostia.com/view/s-magician/ s100 magician] [http://juli8a.freehostia.com/new/brevetto-sui.htm brevetto sui farm] [http://zankoaku-zen.freehostia.com/lib/nuove-immagini43.htm nuove immagini di tomb raider legend] [http://mysteaaricafende.freehostia.com/dvd-live/ dvd live genesis] [http://deathrays.freehostia.com/new/annunci-erotici5.htm annunci erotici gratuiti per adulti] [http://deathrays.freehostia.com/new/gioielli-in3.htm gioielli in argento e pietre] [http://ptisaa-jill.freehostia.com/bluetooth-cellulare/ bluetooth cellulare] [http://lesh1a1.freehostia.com/data/need-for8.htm need for speed underground ps2] [http://macahi-neko.freehostia.com/patti-labelle/ patti labelle] [http://ptisaa-jill.freehostia.com/https-proxify/ https proxify net] [http://mysteaaricafende.freehostia.com/singing-in/ singing in the rain] [http://ms-beaeblebrox.freehostia.com/html/anelli-da2.htm anelli da donna oro e diamanti] [http://knave-aof-clubs.freehostia.com/view/biglietti-di8/ biglietti di ringraziamento] [http://crackoaon.freehostia.com/oum-el/ oum el bouaghi (wilaya)] [http://geneocide.freehostia.com/lib/rhum-zacapa.htm rhum zacapa] [http://usverag-ekb.freehostia.com/small/stampante-laser44/ stampante laser hp 3700] [http://assaharp.freehostia.com/html/ludove-piesne.htm ludove piesne] [http://knave-aof-clubs.freehostia.com/view/fare-un/ fare un pompino] [http://kynaon.freehostia.com/library/www-planeta/ www planeta com pe] [http://geneocide.freehostia.com/lib/per-qualche2.htm per qualche dollaro in meno] [http://zankoaku-zen.freehostia.com/lib/sharmelsheik-com.htm sharmelsheik com] [http://kieloida.freehostia.com/library/diff/ diff] [http://usverag-ekb.freehostia.com/small/giorl/ giorl] [http://mysteaaricafende.freehostia.com/Offerta-di1/ offerta di lavoro medicina] [http://usverag-ekb.freehostia.com/small/ah-ou/ ah ou nos] [http://assaharp.freehostia.com/html/gainsbourg.htm gainsbourg] [http://macahi-neko.freehostia.com/corso-pic/ corso pic] [http://deathrays.freehostia.com/new/voli-per34.htm voli per fuerteventura] [http://crackoaon.freehostia.com/maxtor-diamondmax8/ maxtor diamondmax 10 250] [http://chistoasya.freehostia.com/topic/een-avond/ een avond] [http://junkland-raed.freehostia.com/styles/isuzu-concessionari.htm isuzu concessionari] [http://chistoasya.freehostia.com/topic/dcc-benq/ dcc60 benq] [http://disexat.freehostia.com/articles/mensaje-de2/ mensaje de texto] [http://macahi-neko.freehostia.com/evanscene/ evanscene] [http://junkland-raed.freehostia.com/styles/camera-voghera.htm camera voghera] [http://disexat.freehostia.com/articles/videocamere-trust/ videocamere trust] [http://chistoasya.freehostia.com/topic/roadsters/ roadsters] [http://junkland-raed.freehostia.com/styles/fiat-panda43.htm fiat panda roma] [http://knave-aof-clubs.freehostia.com/view/sintoamplificatori-teac/ sintoamplificatori teac] [http://lesh1a1.freehostia.com/data/cavo-fireware.htm cavo fireware] [http://assaharp.freehostia.com/html/parlanne.htm parlanne] [http://macahi-neko.freehostia.com/fausses-confidences/ fausses confidences les] [http://lesh1a1.freehostia.com/data/kasta-squad.htm kasta squad] [http://ms-beaeblebrox.freehostia.com/html/martin-mystere7.htm martin mystere vol 05] [http://ptisaa-jill.freehostia.com/luckyboy/ luckyboy] [http://geneocide.freehostia.com/lib/jean-claude1.htm jean claude van damme fotos de pelicula] [http://zankoaku-zen.freehostia.com/lib/grup.htm grup] [http://mysteaaricafende.freehostia.com/sindrome-mani/ sindrome mani piedi] [http://geneocide.freehostia.com/lib/midi-madonna.htm midi madonna] [http://zankoaku-zen.freehostia.com/lib/majestic-usb.htm majestic usb] [http://crackoaon.freehostia.com/camera-lourdes/ camera lourdes] [http://miraxcaorran.freehostia.com/lib/frigo-rex1.htm frigo rex da incasso] [http://ptisaa-jill.freehostia.com/www-lareserve/ www lareserve ch] [http://crackoaon.freehostia.com/mio-fratello2/ mio fratello fuma] [http://disexat.freehostia.com/articles/stampante-hp42/ stampante hp wifi] [http://crackoaon.freehostia.com/silvia-cortesi/ silvia cortesi] 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)