Talk:Group string

From Kolmafia
Revision as of 08:26, 7 May 2010 by imported>Bale
Jump to navigation Jump to search

(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)