|
|
(117 intermediate revisions by 76 users not shown) |
Line 1: |
Line 1: |
| [http://krazykat1187.freehostia.com/description/napuli-e/ napuli e] [http://moviemania0.h18.ru/ank/ ank] [http://www.sunny-may.pop3.ru/resources/cd-vergini/ cd vergini r] [http://www.terry-a-boot.pop3.ru/content/gatos-presas/ gatos presas] [http://www.aneta-spb.pop3.ru/blog/trio-cordless.htm trio cordless brondi] [http://goer.freehostia.com/description/software-e.htm software e giochi] [http://bulopipe.125mb.com/web/weslo-sport.htm weslo sport 100 tapis roulant] [http://moniqueleigh.freehostia.com/data/foto-gratis19/ foto gratis burro] [http://evbailly.125mb.com/kit-asus/ kit asus a620 bt gps] [http://chistovskaya.freehostia.com/topic/locali-per5/ locali per scambisti napoli] [http://moviemania0.h18.ru/sexefree/ sexefree] [http://gealbrig.125mb.com/library/hotel-amrey.htm hotel amrey sant pau barcellona] [http://suhorne.125mb.com/kit-vivavoce/ kit vivavoce ericsson] [http://www.kitten130999.pop3.ru/view/the-adam.htm the adam s family] [http://kalahiet.125mb.com/articles/milano-mauritius/ milano mauritius biglietti aerei] [http://www.teplohead.pop3.ru/description/operazione-drago.htm operazione drago] [http://souya.freehostia.com/small/plastica.htm plastica] [http://www.teplohead.pop3.ru/description/bujaka-jamajka.htm bujaka jamajka] [http://biwittic.125mb.com/porno-vogliose/ porno vogliose] [http://www.kitten130999.pop3.ru/view/belalim.htm belalim] [http://bulopipe.125mb.com/web/house-music.htm house music cd] [http://www.wylt.pop3.ru/temario-gratis/ temario gratis] [http://gealbrig.125mb.com/library/www-empiresrts.htm www empiresrts com] [http://svinka.h18.ru/content/krystyna-escort.htm krystyna escort] [http://www.kitten130999.pop3.ru/view/cam-zeta.htm cam zeta blu] [http://midnightbrave.freehostia.com/xbox-live2/ xbox live giapponese in prova] [http://krazykat1187.freehostia.com/description/hp-color6/ hp color laserjet 2550n] [http://gimaynar.125mb.com/small/scheda-video/ scheda video ati radeon 256 mb agp 8x] [http://gimaynar.125mb.com/small/matia-bazar/ matia bazar brivido caldo] [http://www.wildhand.pop3.ru/topic/liberty-hotel.htm liberty hotel] [http://krazykat1187.freehostia.com/description/lamma/ lamma] [http://www.aneta-spb.pop3.ru/blog/ufficio-verona.htm ufficio verona] [http://cyclique.freehostia.com/content/foto-rocco/ foto rocco sinfredi] [http://svinka.h18.ru/content/clairefontaine-paperpc.htm clairefontaine paperpc] [http://chistovskaya.freehostia.com/topic/sistema-operativo5/ sistema operativo xp home] [http://bachenau.125mb.com/ozzano-monferrato.htm ozzano monferrato] [http://souya.freehostia.com/small/abit-k.htm abit k7 raid] [http://triniophoeni.h18.ru/richterite/ richterite] [http://gimaynar.125mb.com/small/formula-i/ formula i] [http://kalahiet.125mb.com/articles/cartina-storiche/ cartina storiche] [http://triniophoeni.h18.ru/mater-castrorum/ mater castrorum] [http://krazykat1187.freehostia.com/description/giacarta/ giacarta] [http://maross.125mb.com/library/diamond-drop.htm diamond drop] [http://ruwilhel.125mb.com/resources/saitek-rumble.htm saitek rumble pad] [http://souya.freehostia.com/small/insufficenza-venosa.htm insufficenza venosa] [http://www.teplohead.pop3.ru/description/pampar-up.htm pampar up] [http://www.teplohead.pop3.ru/description/pirates-musk.htm pirates musk] [http://www.lemonn-ka.pop3.ru/small/www-tnt/ www tnt kamasutra it] [http://ohvoice.125mb.com/web/iona/ iona] [http://evbailly.125mb.com/johnny-reno/ johnny reno] [http://keniff.125mb.com/topic/per-fare.htm per fare l amore] [http://krazykat1187.freehostia.com/description/incontri-reali/ incontri reali trento] [http://taedward.125mb.com/description/suoneria-dune/ suoneria dune buggy] [http://timo-kiev.freehostia.com/biggest-tit.htm biggest tit] [http://cyclique.freehostia.com/content/musica-y/ musica y matemarica] [http://goer.freehostia.com/description/forcella-bici.htm forcella bici] [http://www.aneta-spb.pop3.ru/blog/niguarda.htm niguarda] [http://kalahiet.125mb.com/articles/lewisham/ lewisham] [http://doublename.125mb.com/netgear-wgtis.htm netgear wg111tis] [http://timo-kiev.freehostia.com/mascia.htm mascia] [http://chistovskaya.freehostia.com/topic/moresco/ moresco] [http://bachenau.125mb.com/www-satlink.htm www satlink com] [http://bulopipe.125mb.com/web/figaro.htm figaro] [http://svinka.h18.ru/content/d-brown.htm d brown angeli e demoni] [http://littleangel1.h18.ru/html/deurne-paesi.htm deurne (paesi bassi)] [http://www.sunny-may.pop3.ru/resources/gelati-per/ gelati per bimbi] [http://www.aneta-spb.pop3.ru/blog/speculator.htm speculator] [http://bulopipe.125mb.com/web/www-dovecomequando.htm www dovecomequando it] [http://goer.freehostia.com/description/emerson.htm emerson] [http://www.lemonn-ka.pop3.ru/small/zafira-confort/ zafira confort elegance] [http://reliles.125mb.com/library/daniela-romo.htm daniela romo] [http://gor22011978.pop3.ru/articles/disney-land/ disney land] [http://ohvoice.125mb.com/web/ciao-mare/ ciao mare] [http://midnightbrave.freehostia.com/u2/ u 96] [http://timo-kiev.freehostia.com/hard-disc12.htm hard disc lacie 250] [http://cyclique.freehostia.com/content/aaa-color/ aaa color picker 10] [http://cyclique.freehostia.com/content/olimpus-mrobe/ olimpus mrobe] [http://littleangel1.h18.ru/html/occhi-di.htm occhi di gatto vol 1] [http://www.teplohead.pop3.ru/description/mediamente-isterica.htm mediamente isterica di carmen consoli] [http://ruwilhel.125mb.com/resources/call-to.htm call to power ii] [http://doublename.125mb.com/trust-acquisizione.htm trust acquisizione] [http://www.kitten130999.pop3.ru/view/dvd-x.htm dvd 8x verbatim] [http://littleangel1.h18.ru/html/suzuky-gran.htm suzuky gran vitara] [http://souya.freehostia.com/small/lampade-fluorescenti.htm lampade fluorescenti illuminazione] [http://souya.freehostia.com/small/colegialas-putas.htm colegialas putas] [http://www.prairiesky.pop3.ru/view/immagini-da/ immagini da lost kingdoms ii] [http://reliles.125mb.com/library/deposito.htm deposito] [http://gealbrig.125mb.com/library/doblo-usato.htm doblo usato] [http://timo-kiev.freehostia.com/frequenza-di.htm frequenza di eurosport] [http://bachenau.125mb.com/ragazza-nizza.htm ragazza nizza] [http://www.shadowthecatslj.pop3.ru/data/conspiracy-soluzione/ conspiracy soluzione finale] [http://gimaynar.125mb.com/small/duran-duran/ duran duran arena (an absurd notion) e making of arena] [http://chistovskaya.freehostia.com/topic/pantera/ pantera] [http://krazykat1187.freehostia.com/description/elettrodomestici-smeg/ elettrodomestici smeg a potenza] [http://rimarsh.125mb.com/topic/oakley-half/ oakley half jacket polarized] [http://kalahiet.125mb.com/articles/davvero-sexi/ davvero sexi] [http://www.rei794.pop3.ru/articles/antenna-gps.htm antenna gps globalsat] [http://reliles.125mb.com/library/palio-di.htm palio di siena] [http://kalahiet.125mb.com/articles/shell-shock/ shell shock trucchi] [http://timo-kiev.freehostia.com/organigramma.htm organigramma] [http://www.hiidenkivenpaivakoti.fi/help/new/mhmwtq.html Francesco guccini] [http://www.startonlineweb.com/help/new/powhmf.html Notebook acer] [http://www.worthwhilehosting.com/banners/auto/jgiqdv.html Foresta] [http://www.startonlineweb.com/help/new/phurpi.html Libro dislessia] [http://www.startonlineweb.com/help/new/vrxeuk.html Ww angolo testi it] [http://www.worthwhilehosting.com/banners/auto/pvxcnu.html Norimberga cose fare] [http://www.worthwhilehosting.com/banners/auto/jlnpmo.html Creare frasi glitterate] [http://www.hiidenkivenpaivakoti.fi/help/new/bdoaoo.html Curriculum vitae europeo] [http://www.ccrs.uzh.ch/user/root/irbtlu.html Free mature video] [http://www.startonlineweb.com/help/new/wbpkvq.html Storie porno illustrate] [http://www.worthwhilehosting.com/banners/auto/nocqss.html Donne vogliose video] [http://www.ccrs.uzh.ch/user/root/guwdvr.html Asromacalcio it] [http://www.startonlineweb.com/help/new/ntuvxn.html Ghoan sesso con videl] [http://www.ccrs.uzh.ch/user/root/wxidls.html Porte vetro scorrevoli] [http://www.worthwhilehosting.com/banners/auto/jkfred.html Nudo di culi femminili] [http://www.hiidenkivenpaivakoti.fi/help/new/ofuffu.html Naruto hentai] [http://www.worthwhilehosting.com/banners/auto/dffkax.html Puntatori diddl] [http://www.startonlineweb.com/help/new/bommxf.html Indata istat it turismo] [http://www.hiidenkivenpaivakoti.fi/help/new/bkqete.html Moissanite] [http://www.worthwhilehosting.com/banners/auto/crkhwn.html Vecchie gratis] [http://www.worthwhilehosting.com/banners/auto/uenmxp.html Hotel portofino] [http://www.ccrs.uzh.ch/user/root/ntscis.html Pentola rame] [http://www.startonlineweb.com/help/new/cdjwtv.html Troie che scopano con animali] [http://www.ccrs.uzh.ch/user/root/wfktvu.html Snai] [http://www.ccrs.uzh.ch/user/root/wikfha.html My way frank sinatra] [http://www.hiidenkivenpaivakoti.fi/help/new/dhimdc.html Download puntatori mouse] [http://www.hiidenkivenpaivakoti.fi/help/new/gknrqu.html Biondine] [http://www.ccrs.uzh.ch/user/root/sqevti.html Simpson hentay] [http://www.ccrs.uzh.ch/user/root/ddecpx.html Culi di donne nere] [http://www.worthwhilehosting.com/banners/auto/iihoiu.html Banco posta on line] [http://www.worthwhilehosting.com/banners/auto/avhufb.html Albergo sicilia centro] [http://www.ccrs.uzh.ch/user/root/qbjbwf.html Tette mature] [http://www.startonlineweb.com/help/new/dtgkpo.html Incontro webcam sesso] [http://www.ccrs.uzh.ch/user/root/iwucwv.html Apicoltura piana] [http://www.hiidenkivenpaivakoti.fi/help/new/hdleeh.html Spot tv pubblicita musica ford] [http://www.hiidenkivenpaivakoti.fi/help/new/qekqkn.html Milva] [http://www.startonlineweb.com/help/new/iqrcat.html Teen facial kacey] [http://www.worthwhilehosting.com/banners/auto/tekanq.html Firenze casa] [http://www.startonlineweb.com/help/new/qilwsx.html Cerco lavoro chiesa valmalenco] [http://www.hiidenkivenpaivakoti.fi/help/new/hlejdf.html Pornostar bionde] [http://www.hiidenkivenpaivakoti.fi/help/new/ohtckw.html Immagini blog] [http://www.worthwhilehosting.com/banners/auto/uqrgce.html Pornovideo gradis] [http://www.worthwhilehosting.com/banners/auto/doxnbc.html Corsi marketing] [http://www.ccrs.uzh.ch/user/root/fjjabi.html Discoteca roma cube] [http://www.startonlineweb.com/help/new/loeugf.html Sex incontro italia varese] [http://www.worthwhilehosting.com/banners/auto/fnbdgl.html Costantino vitagliano] [http://www.startonlineweb.com/help/new/rqepcs.html Petto di pollo brasato con vino rosso] [http://www.ccrs.uzh.ch/user/root/nqisui.html Justine mattera video] [http://www.worthwhilehosting.com/banners/auto/bhnwrw.html Annunci69 it] [http://www.worthwhilehosting.com/banners/auto/iabkdu.html Agip petrolio] [http://www.ccrs.uzh.ch/user/root/iqsctx.html Big teets] [http://www.hiidenkivenpaivakoti.fi/help/new/pqvhtb.html Finanza online forum snai] [http://www.worthwhilehosting.com/banners/auto/rrsbol.html Hotel don manuel lisbona] [http://www.worthwhilehosting.com/banners/auto/pfaoax.html Poesia anniversario matrimonio] [http://www.worthwhilehosting.com/banners/auto/lxjcok.html Cessione quinto prestito] [http://www.worthwhilehosting.com/banners/auto/apvfjk.html Troia it] [http://www.worthwhilehosting.com/banners/auto/smqpis.html Boy from istambul] [http://www.hiidenkivenpaivakoti.fi/help/new/fsxvdq.html Fighe depilate] [http://www.hiidenkivenpaivakoti.fi/help/new/borpvk.html Quotazioni auto storiche] [http://www.worthwhilehosting.com/banners/auto/qopckh.html Asiatiche nude] [http://www.worthwhilehosting.com/banners/auto/dxvwxf.html Misura qi gratis] [http://www.hiidenkivenpaivakoti.fi/help/new/cuxxce.html Gay animal sex] [http://www.ccrs.uzh.ch/user/root/cewhak.html Canalis porn] [http://www.ccrs.uzh.ch/user/root/bblwoi.html Pissing porno] [http://www.hiidenkivenpaivakoti.fi/help/new/jqvkae.html Refrigerazione frigorifero] [http://www.hiidenkivenpaivakoti.fi/help/new/ugqxxu.html Andamento euribor] [http://www.worthwhilehosting.com/banners/auto/bqprcm.html Repubblica dominicana] [http://www.hiidenkivenpaivakoti.fi/help/new/cctgei.html Appunti farmacologia] [http://www.worthwhilehosting.com/banners/auto/bhsgjk.html Hotel tenerife] [http://www.ccrs.uzh.ch/user/root/gupgsn.html Borsaitalia it] [http://www.worthwhilehosting.com/banners/auto/vdtbgt.html Guepiere] [http://www.worthwhilehosting.com/banners/auto/bbqkju.html Custodia nera dvd] [http://www.startonlineweb.com/help/new/sdtvlb.html Bed and breakfast stresa] [http://www.worthwhilehosting.com/banners/auto/rrhvha.html Jazz piano spartito] [http://www.ccrs.uzh.ch/user/root/lfqauq.html Foto inculata scopata transex] [http://www.ccrs.uzh.ch/user/root/ckqocx.html Rinoplastica settoplastica] [http://www.ccrs.uzh.ch/user/root/gukxlw.html Amburgo cose fare] [http://www.hiidenkivenpaivakoti.fi/help/new/nblucp.html Avatar per extremelot] [http://www.startonlineweb.com/help/new/oqbune.html Sexy granny] [http://www.startonlineweb.com/help/new/malsrd.html Spaghetti con le cozze] [http://www.worthwhilehosting.com/banners/auto/lxngad.html Porno free trans] [http://www.startonlineweb.com/help/new/gsxwow.html Teen tits] [http://www.ccrs.uzh.ch/user/root/tnootl.html Hotel pescasseroli] [http://www.worthwhilehosting.com/banners/auto/qsebmn.html Gormiti colorare] [http://www.ccrs.uzh.ch/user/root/odgjpj.html Offerta hotel rimini] [http://www.startonlineweb.com/help/new/trnqxu.html Foto di nudi maschili] [http://www.startonlineweb.com/help/new/vmxdum.html Giovanni allevi] [http://www.startonlineweb.com/help/new/uslikl.html Investire borsa] [http://www.worthwhilehosting.com/banners/auto/rrklup.html Pokemon rosso fuoco] [http://www.startonlineweb.com/help/new/etgbxu.html Implantologia croazia] [http://www.hiidenkivenpaivakoti.fi/help/new/adlduv.html Il piccolo] [http://www.ccrs.uzh.ch/user/root/dlppjh.html Decolte] [http://www.hiidenkivenpaivakoti.fi/help/new/uqobqq.html Anteprima video pornografici] [http://www.worthwhilehosting.com/banners/auto/gamltd.html Roroscopo] [http://www.hiidenkivenpaivakoti.fi/help/new/unvbbg.html Dormire madrid] [http://www.worthwhilehosting.com/banners/auto/ejbvva.html Tendinite] [http://www.hiidenkivenpaivakoti.fi/help/new/aixbst.html Culi sexy] [http://www.worthwhilehosting.com/banners/auto/hgolbw.html Amsterdam ristorante] [http://www.worthwhilehosting.com/banners/auto/ejvfqc.html Vendita dvd r] [http://www.worthwhilehosting.com/banners/auto/gchlou.html Articolo regalo cristallo] 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) |
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:
- 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.
- 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)