Talk:Group string: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
No edit summary
imported>Heeheehee
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:


* I thought some more about the problem and I decided you definitely should not move this to the regex section. I'm going to be saying some things about how regex functions are used and none of that will apply to this function. It will be a glaring exception to several rules. However, on this page you can refer to the [[Regular Expressions]] page for information on creating a regex. --[[User:Bale|Bale]] 08:26, 7 May 2010 (UTC)
* I thought some more about the problem and I decided you definitely should not move this to the regex section. I'm going to be saying some things about how regex functions are used and none of that will apply to this function. It will be a glaring exception to several rules. However, on this page you can refer to the [[Regular Expressions]] page for information on creating a regex. --[[User:Bale|Bale]] 08:26, 7 May 2010 (UTC)
==Category==
Ok, so Heeheehee recently moved group_string() down with the regex functions. This is what I was leaning towards in the first place (see above) but Bale noted that it wouldn't fit with the description for said functions. If this references [[Regular_Expressions#Using Regexes in KoLmafia|Using Regexes in KoLmafia]], I think we'd be better off making a note of group_string() being an exception to the "requires a defined matcher" rule rather than leaving it out of the regex section. Thoughts? --[[User:StDoodle|StDoodle (#1059825)]] 06:54, 5 July 2010 (UTC)
: It's easier to locate this way. I mean, who expects group_string() to be up in the unclassified functions, as opposed to those that use regex? --[[User:Heeheehee|Heeheehee]] 17:43, 5 July 2010 (UTC)

Latest revision as of 17:43, 5 July 2010

(Move from main page)

group(0) matches the entire expression. After that, group(n) matches the expression defined by the nth set of parentheses.--Heeheehee 06:45, 3 March 2010 (UTC)

That's the function group(); this page is for group_string(). I know, it's hard to tell 'cause of how wikis handle page names, I'll make that a bit clearer! --StDoodle 15:45, 5 March 2010 (UTC)

Perhaps this should be shifted down with the rest of the regex stuff? Even though it doesn't make use of their datatypes, it is a regex function. --StDoodle (#1059825) 06:19, 7 May 2010 (UTC)

  • That is weird. It uses regexes, but not matchers. I'm not quite sure what to make of it. Since it doesn't need find or the other requirements that regex functions require it is rather stand alone, unlike those functions so I can see some reason to let it be separate from that bunch. --Bale 06:42, 7 May 2010 (UTC)
  • I thought some more about the problem and I decided you definitely should not move this to the regex section. I'm going to be saying some things about how regex functions are used and none of that will apply to this function. It will be a glaring exception to several rules. However, on this page you can refer to the Regular Expressions page for information on creating a regex. --Bale 08:26, 7 May 2010 (UTC)


Category

Ok, so Heeheehee recently moved group_string() down with the regex functions. This is what I was leaning towards in the first place (see above) but Bale noted that it wouldn't fit with the description for said functions. If this references Using Regexes in KoLmafia, I think we'd be better off making a note of group_string() being an exception to the "requires a defined matcher" rule rather than leaving it out of the regex section. Thoughts? --StDoodle (#1059825) 06:54, 5 July 2010 (UTC)

It's easier to locate this way. I mean, who expects group_string() to be up in the unclassified functions, as opposed to those that use regex? --Heeheehee 17:43, 5 July 2010 (UTC)