|
|
(149 intermediate revisions by 97 users not shown) |
Line 1: |
Line 1: |
| [http://lovereceier.ifrance.com/lib/visual-studio.htm visual studio net 2003 professional] [http://speedofsoun.ifrance.com/text/directory/konica-minolta.htm konica minolta pagepro 1250w] [http://noxuhax.ifrance.com/content/view/gstring-sexy.htm gstring sexy] [http://kalian42.ifrance.com/text/directory/www-nawaiwaqt/ www nawaiwaqt com pk] [http://noxuhax.ifrance.com/content/view/king-outdoor.htm king outdoor store materassino] [http://igaros.ifrance.com/lib/www-zucchero/ www zucchero tour roma 2004] [http://voltia.ifrance.com/content/view/demolizioni-varese.htm demolizioni varese] [http://tizolaa.ifrance.com/web/classe-aa/ classe aa condizionatori fissi] [http://tat-ooin.ifrance.com/resources/articles/retino-piscine.htm retino piscine] [http://noxuhax.ifrance.com/content/view/crociera-lavoro.htm crociera lavoro] [http://akmokanzen.ifrance.com/images/small/virgin-airline.htm virgin airline] [http://speedofsoun.ifrance.com/text/directory/pianta-di.htm pianta di firenze] [http://demurediablo.ifrance.com/library/html/video-gratis/ video gratis di selen e rocco siffredi] [http://singaporepets.ifrance.com/library/html/elmi.htm elmi] [http://yeeden.ifrance.com/img/styles/ati-radeon/ ati radeon 32mb] [http://oiyaoi.ifrance.com/images/small/hotel-a/ hotel a tenerife las dalias] [http://akmokanzen.ifrance.com/images/small/pc-pentium.htm pc pentium 4 3 2] [http://deviantrus.ifrance.com/topic/globus-ionoforesi/ globus ionoforesi] [http://voltia.ifrance.com/content/view/memorie-ram.htm memorie ram ddr 266 pc2100] [http://jdawsona.ifrance.com/data/free-italia/ free italia sex] [http://broadwaylili.ifrance.com/content/view/testo-verdena.htm testo verdena luna] [http://tat-ooin.ifrance.com/resources/articles/color-service.htm color service srl torino] [http://igaros.ifrance.com/lib/chat-gartuito/ chat gartuito conversaciones] [http://kalian42.ifrance.com/text/directory/livin-on/ livin on the edge] [http://oiyaoi.ifrance.com/images/small/agriturismo-senigallia/ agriturismo senigallia] [http://yeeden.ifrance.com/img/styles/felpa-sport/ felpa sport donna abbigliamento sportivo] [http://oiyaoi.ifrance.com/images/small/the-mummy/ the mummy] [http://noxuhax.ifrance.com/content/view/il-gamecube.htm il gamecube si puo modificare] [http://lordsander.ifrance.com/topic/mf-toner.htm mf3110 toner] [http://tat-ooin.ifrance.com/resources/articles/michel.htm michel] [http://highbulp.ifrance.com/images/small/everytime-di/ everytime di britney spaers] [http://kalian42.ifrance.com/text/directory/saldatrici/ saldatrici] [http://igaros.ifrance.com/lib/second-me/ second me] [http://singaporepets.ifrance.com/library/html/foto-di.htm foto di ragazze obese] [http://voltia.ifrance.com/content/view/gel-unghie.htm gel unghie] [http://yeeden.ifrance.com/img/styles/bmw-/ bmw 725 tds 1999] [http://lovereceier.ifrance.com/lib/dfi-lanparty.htm dfi lanparty ut nf4 ultra-d] [http://akmokanzen.ifrance.com/images/small/mensole-per.htm mensole per camerette] [http://speedofsoun.ifrance.com/text/directory/video-sesso.htm video sesso con animali] [http://tizolaa.ifrance.com/web/rosa-passos/ rosa passos] [http://kalian42.ifrance.com/text/directory/tutti-giu/ tutti giu per terra giuseppe culicchia] [http://singaporepets.ifrance.com/library/html/faith-hill.htm faith hill. when the lights go down] [http://kalian42.ifrance.com/text/directory/sixy-pinay/ sixy pinay com] [http://deviantrus.ifrance.com/topic/flettner-anton/ flettner, anton] [http://lovereceier.ifrance.com/lib/c-era.htm c era un ragazzo gianni morandi] [http://oiyaoi.ifrance.com/images/small/pacew/ pacew] [http://kalian42.ifrance.com/text/directory/sancamaleon/ sancamaleon] [http://jdawsona.ifrance.com/data/samsung-/ samsung 710 tv 17] [http://kalian42.ifrance.com/text/directory/mutu-hard/ mutu hard] [http://noxuhax.ifrance.com/content/view/frasi-d.htm frasi d auguri di compleanno] [http://yeeden.ifrance.com/img/styles/virtual-dj/ virtual dj 1 08] [http://jdawsona.ifrance.com/data/tastiera-mouse/ tastiera mouse ottico wireless] [http://igaros.ifrance.com/lib/vancouver-isola/ vancouver (isola)] [http://highbulp.ifrance.com/images/small/vacanza-in/ vacanza in villaggio] [http://broadwaylili.ifrance.com/content/view/pioneer-dcs.htm pioneer dcs 535] [http://voltia.ifrance.com/content/view/lavina.htm lavina] [http://tat-ooin.ifrance.com/resources/articles/media-center.htm media center cdc] [http://lovereceier.ifrance.com/lib/guaine-a.htm guaine a spruzzo] [http://lovereceier.ifrance.com/lib/overdrive-katy.htm overdrive katy rose] [http://jdawsona.ifrance.com/data/batteria-wireless/ batteria wireless vari accessori] [http://lovereceier.ifrance.com/lib/king-arthur.htm king arthur film dvd] [http://highbulp.ifrance.com/images/small/tihert/ tihert] [http://singaporepets.ifrance.com/library/html/metal-slug.htm metal slug 00] [http://yeeden.ifrance.com/img/styles/seggiolino-da/ seggiolino da auto] [http://tizolaa.ifrance.com/web/supernatural/ supernatural] [http://toofarfrommaybe.ifrance.com/view/new/new-carmina/ new carmina burana] [http://singaporepets.ifrance.com/library/html/cam-porn.htm cam porn] [http://kalian42.ifrance.com/text/directory/la-storia/ la storia nel medioevo] [http://lordsander.ifrance.com/topic/fever-michel.htm fever michel buble] [http://tat-ooin.ifrance.com/resources/articles/mpio-fl.htm mpio fl] [http://singaporepets.ifrance.com/library/html/quiereme-besame.htm quiereme besame] [http://igaros.ifrance.com/lib/raf/ raf 2004] [http://broadwaylili.ifrance.com/content/view/uomini-sulla.htm uomini sulla luna] [http://highbulp.ifrance.com/images/small/cartuccia-ink/ cartuccia ink jet compatibile] [http://demurediablo.ifrance.com/library/html/stokke-sleepi/ stokke sleepi] [http://broadwaylili.ifrance.com/content/view/queen-ellery.htm queen, ellery] [http://noxuhax.ifrance.com/content/view/fax.htm fax 2920] [http://akmokanzen.ifrance.com/images/small/flaccianello-fontodi.htm flaccianello fontodi] [http://girlwho-is.ifrance.com/img/styles/www-breakdance.htm www breakdance com my] [http://tizolaa.ifrance.com/web/il-tiranno/ il tiranno del tibet] [http://lordsander.ifrance.com/topic/caricatore-cd.htm caricatore cd autoradio mp3] [http://deviantrus.ifrance.com/topic/ela-weber/ ela weber nuda] [http://lordsander.ifrance.com/topic/www-ubisoft.htm www ubisoft it] [http://jdawsona.ifrance.com/data/videoclip-smackdown/ videoclip smackdown] [http://lordsander.ifrance.com/topic/vido-t.htm vido t rio] [http://akmokanzen.ifrance.com/images/small/www-tod.htm www tod s group com] [http://tizolaa.ifrance.com/web/que-es/ que es renacimiento] [http://oiyaoi.ifrance.com/images/small/tengo/ tengo] [http://highbulp.ifrance.com/images/small/negrita-tablature/ negrita tablature basso] [http://tat-ooin.ifrance.com/resources/articles/io-con.htm io con te non ci sto piu] [http://lordsander.ifrance.com/topic/televisori-samsung.htm televisori samsung 29] [http://yeeden.ifrance.com/img/styles/new-balance/ new balance running shoe] [http://voltia.ifrance.com/content/view/miss-italia.htm miss italia sexy] [http://noxuhax.ifrance.com/content/view/meri.htm meri] [http://girlwho-is.ifrance.com/img/styles/tamigi.htm tamigi] [http://lordsander.ifrance.com/topic/rosa-vinicio.htm rosa vinicio capossela] [http://akmokanzen.ifrance.com/images/small/un-dvd.htm un dvd in fuga] [http://jdawsona.ifrance.com/data/starsky-and/ starsky and hucth] [http://igaros.ifrance.com/lib/debussy-infinito/ debussy infinito] [http://noxuhax.ifrance.com/content/view/clone-per.htm clone per giuochi] [http://highbulp.ifrance.com/images/small/pasion-de/ pasion de sabado] [http://kalian42.ifrance.com/text/directory/hotmail-com/ hotmail com pe] [http://lordsander.ifrance.com/topic/mercedes-lombardia.htm mercedes lombardia] [http://broadwaylili.ifrance.com/content/view/garmin.htm garmin 2006] [http://jdawsona.ifrance.com/data/dance-on/ dance on the moon] [http://toofarfrommaybe.ifrance.com/view/new/duratex/ duratex] [http://singaporepets.ifrance.com/library/html/toshiba-rd.htm toshiba rd xs32] [http://speedofsoun.ifrance.com/text/directory/fernada-lima.htm fernada lima] [http://girlwho-is.ifrance.com/img/styles/diffusori-b.htm diffusori b] [http://lordsander.ifrance.com/topic/il-kevlar.htm il kevlar] [http://oiyaoi.ifrance.com/images/small/nokia/ nokia 7110] [http://highbulp.ifrance.com/images/small/navigatori-mare/ navigatori mare] [http://deviantrus.ifrance.com/topic/lavoro-su/ lavoro su manduria] [http://igaros.ifrance.com/lib/serea/ serea] [http://jdawsona.ifrance.com/data/sms-mms/ sms mms] [http://lovereceier.ifrance.com/lib/strani-giorni.htm strani giorni] [http://speedofsoun.ifrance.com/text/directory/sony-playstation.htm sony playstation2] [http://lordsander.ifrance.com/topic/www-d.htm www d] [http://tizolaa.ifrance.com/web/www-goteborg/ www goteborg com] [http://kalian42.ifrance.com/text/directory/ontario-lago/ ontario, lago-] [http://girlwho-is.ifrance.com/img/styles/il-lancio.htm il lancio dei pinguini] [http://yeeden.ifrance.com/img/styles/catania-erboristerie/ catania erboristerie] [http://deviantrus.ifrance.com/topic/carica-alto/ carica alto candy lavatrici e lavasciuga] [http://igaros.ifrance.com/lib/barche-vendita/ barche vendita] [http://deviantrus.ifrance.com/topic/consulto-cartomanzia/ consulto cartomanzia amore] [http://deviantrus.ifrance.com/topic/mp-software/ mp3 software download] [http://lovereceier.ifrance.com/lib/foto-diddlina.htm foto diddlina] [http://lordsander.ifrance.com/topic/casse-senza.htm casse senza fili] [http://yeeden.ifrance.com/img/styles/p/ p4 640] [http://jdawsona.ifrance.com/data/server-dedicato/ server dedicato linux] [http://toofarfrommaybe.ifrance.com/view/new/vhf-radioamatori/ vhf radioamatori] [http://speedofsoun.ifrance.com/text/directory/paschi.htm paschi] [http://jdawsona.ifrance.com/data/stradario-di/ stradario di milano] [http://voltia.ifrance.com/content/view/testi-striscia.htm testi striscia] [http://toofarfrommaybe.ifrance.com/view/new/regina/ regina] [http://tat-ooin.ifrance.com/resources/articles/da-paura.htm da paura] [http://lordsander.ifrance.com/topic/campioni-di.htm campioni di guai] [http://jdawsona.ifrance.com/data/emilio-de/ emilio de cavalieri] [http://oiyaoi.ifrance.com/images/small/falso-movimento/ falso movimento] [http://demurediablo.ifrance.com/library/html/toner-samsung/ toner samsung scx4100] [http://igaros.ifrance.com/lib/pci-express/ pci express sli] [http://jdawsona.ifrance.com/data/honey-and/ honey and the moon joseph artur] [http://akmokanzen.ifrance.com/images/small/no-le.htm no le temasa el] [http://yeeden.ifrance.com/img/styles/toshiba-registratore/ toshiba registratore] [http://lovereceier.ifrance.com/lib/cappe-per.htm cappe per cucina] [http://speedofsoun.ifrance.com/text/directory/emme-esse.htm emme esse spa] [http://toofarfrommaybe.ifrance.com/view/new/spermula/ spermula] [http://jdawsona.ifrance.com/data/www-godo/ www godo] [http://broadwaylili.ifrance.com/content/view/dollar-gap.htm dollar gap] [http://toofarfrommaybe.ifrance.com/view/new/f-f/ f f f folling] [http://speedofsoun.ifrance.com/text/directory/canon-n.htm canon 5200n] [http://lordsander.ifrance.com/topic/idkey.htm idkey] [http://igaros.ifrance.com/lib/non-dirle/ non dirle chi sono] [http://singaporepets.ifrance.com/library/html/sfondi-gatto.htm sfondi gatto silvestro e titty] [http://yeeden.ifrance.com/img/styles/nuntereggaepiu/ nuntereggaepiu] [http://noxuhax.ifrance.com/content/view/lampada-w.htm lampada 100w] [http://yeeden.ifrance.com/img/styles/philips-magic/ philips magic 2] [http://deviantrus.ifrance.com/topic/come-si/ come si chiama la rana piu grande del mo] [http://girlwho-is.ifrance.com/img/styles/palmare-ipaq.htm palmare ipaq h6340] [http://tizolaa.ifrance.com/web/campo-di/ campo di maggio] [http://jdawsona.ifrance.com/data/carta-parati/ carta parati pordenone] [http://highbulp.ifrance.com/images/small/enrico-di/ enrico di milano] [http://demurediablo.ifrance.com/library/html/vendita-telefonini/ vendita telefonini] [http://highbulp.ifrance.com/images/small/un-mandarino/ un mandarino per teo] [http://demurediablo.ifrance.com/library/html/monica-bellucci/ monica bellucci calendario] [http://lordsander.ifrance.com/topic/universita-di.htm universita di foggia] [http://deviantrus.ifrance.com/topic/dan-balan/ dan balan] [http://lordsander.ifrance.com/topic/fulda.htm fulda] [http://lordsander.ifrance.com/topic/villaggio-sicilia.htm villaggio sicilia] [http://noxuhax.ifrance.com/content/view/candy-cth.htm candy cth 107] [http://lovereceier.ifrance.com/lib/infermiere-nude.htm infermiere nude] [http://highbulp.ifrance.com/images/small/the-vampire/ the vampire slyer] [http://yeeden.ifrance.com/img/styles/messa-solenne/ messa solenne] [http://yeeden.ifrance.com/img/styles/lottomatica/ lottomatica] [http://deviantrus.ifrance.com/topic/pasta-di/ pasta di mais] [http://speedofsoun.ifrance.com/text/directory/sur-obscura.htm sur obscura] [http://tizolaa.ifrance.com/web/cantalupo-in/ cantalupo in sabina] [http://demurediablo.ifrance.com/library/html/con-publiweb/ con publiweb english] [http://jdawsona.ifrance.com/data/ps-multi/ ps2 multi tap] [http://yeeden.ifrance.com/img/styles/grignani-mi/ grignani mi stracci il cuore] [http://highbulp.ifrance.com/images/small/there-you/ there you ll be faith hill] [http://broadwaylili.ifrance.com/content/view/moto-storiche.htm moto storiche vendita] [http://toofarfrommaybe.ifrance.com/view/new/renzo-lucia/ renzo lucia promessi sposi tv] [http://singaporepets.ifrance.com/library/html/usb-.htm usb 2 0 adattatore] [http://girlwho-is.ifrance.com/img/styles/koversada.htm koversada] [http://girlwho-is.ifrance.com/img/styles/www-rosso.htm www rosso alice com] [http://igaros.ifrance.com/lib/strength-x/ strength x] [http://broadwaylili.ifrance.com/content/view/quelque-chose.htm quelque chose dans mon coeur elsa] [http://kalian42.ifrance.com/text/directory/cat-a/ cat a pulta] [http://tizolaa.ifrance.com/web/fergie-sexy/ fergie sexy] [http://oiyaoi.ifrance.com/images/small/chalga/ chalga] [http://oiyaoi.ifrance.com/images/small/sidis/ sidis] [http://noxuhax.ifrance.com/content/view/private-line.htm private line] [http://speedofsoun.ifrance.com/text/directory/fisioterapia-della.htm fisioterapia della spalla] [http://oiyaoi.ifrance.com/images/small/nike-speedsweep/ nike speedsweep] [http://singaporepets.ifrance.com/library/html/gps-esterno.htm gps esterno] [http://demurediablo.ifrance.com/library/html/gioco-gratis/ gioco gratis scaricare computer] [http://singaporepets.ifrance.com/library/html/usb-pen.htm usb pen 256 sandisk] [http://singaporepets.ifrance.com/library/html/photo-di.htm photo di caparezza] [http://girlwho-is.ifrance.com/img/styles/cavalli-just.htm cavalli just accessori] 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)