<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kazim</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kazim"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/Kazim"/>
	<updated>2026-04-25T05:05:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:String_Handling_Routines&amp;diff=2157</id>
		<title>Talk:String Handling Routines</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:String_Handling_Routines&amp;diff=2157"/>
		<updated>2007-11-07T04:46:17Z</updated>

		<summary type="html">&lt;p&gt;Kazim: More dead spam&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;So wtf does group_string actually do?  The linked &amp;quot;descriptive&amp;quot; post has an utterly unhelpful example.  Has anyone ever used it for anything?&lt;br /&gt;
&lt;br /&gt;
Groups a string into a map using a regular expression. To understand the function you must know.&lt;br /&gt;
1. What maps are and how they are used.&lt;br /&gt;
2. Understand what regular expressions are and how to create them.&lt;br /&gt;
&lt;br /&gt;
Using the original post:&lt;br /&gt;
&lt;br /&gt;
FUNCTION DEFINTION: string [int,int] group_string( string source, string regex )&lt;br /&gt;
EXAMPLE: string [int,int] test = group_string( &amp;quot;This is a test&amp;quot;, &amp;quot;([a-z] ) &amp;quot; );&lt;br /&gt;
&lt;br /&gt;
Example Breakdown:&lt;br /&gt;
&#039;&#039;&#039;string [int,int]&#039;&#039;&#039; Define a map. Two dimensional. The indices are integers. The data is stored as a string.&lt;br /&gt;
&#039;&#039;&#039;test&#039;&#039;&#039; Define the map with name &#039;&#039;&#039;test&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;&#039;group_string&#039;&#039;&#039; Call the function.&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;This is a Test&amp;quot;&#039;&#039;&#039; Feeding the function a sample string.&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;([a-z] ) &amp;quot;&#039;&#039;&#039; Your regular expression.&lt;br /&gt;
&lt;br /&gt;
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? &lt;br /&gt;
&#039;&#039;&#039;The Parenthesis ():&#039;&#039;&#039; Tell the function this is a group of characters.&lt;br /&gt;
&#039;&#039;&#039;[a-z]:&#039;&#039;&#039; Tell us they will be lower case letters.&lt;br /&gt;
&#039;&#039;&#039; :&#039;&#039;&#039; Tell us to look for one or more characters.&lt;br /&gt;
That space between the ) and &amp;quot; Tells us the pattern ends in a space.&lt;br /&gt;
&lt;br /&gt;
Thus reading down the string.&lt;br /&gt;
T = Does not match [a-z] is a capital letter.&lt;br /&gt;
h = Matches [a-z]. Starting Group&lt;br /&gt;
i = Matches [a-z]&lt;br /&gt;
s = Matches [a-z]&lt;br /&gt;
  = Matches space. First group found and is &amp;quot;his &amp;quot;&lt;br /&gt;
i = Matches [a-z]. Starting Group&lt;br /&gt;
s = Matches [a-z]&lt;br /&gt;
  = Matches space. Second group found, and is &amp;quot;is &amp;quot;&lt;br /&gt;
a = Matches [a-z]. Starting Group&lt;br /&gt;
  = Matches space. Third group found, and is &amp;quot;a &amp;quot;&lt;br /&gt;
t = Matches [a-z]. Starting Group&lt;br /&gt;
e = Matches [a-z]&lt;br /&gt;
s = Matches [a-z]&lt;br /&gt;
t = Matches [a-z]&lt;br /&gt;
End of line. No more matches. Stop.&lt;br /&gt;
&lt;br /&gt;
Thus, trusting the post, the map would be:&lt;br /&gt;
&lt;br /&gt;
test[0][0] =&amp;gt; &amp;quot;his &amp;quot;&lt;br /&gt;
test[0][1] =&amp;gt; &amp;quot;his&amp;quot;&lt;br /&gt;
test[1][0] =&amp;gt; &amp;quot;is &amp;quot;&lt;br /&gt;
test[1][1] =&amp;gt; &amp;quot;is&amp;quot;&lt;br /&gt;
test[2][0] =&amp;gt; &amp;quot;a &amp;quot;&lt;br /&gt;
test[2][1] =&amp;gt; &amp;quot;a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I personally haven&#039;t used it. Would be used in parsing a page by hand.&lt;/div&gt;</summary>
		<author><name>Kazim</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:Main_Page&amp;diff=653</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:Main_Page&amp;diff=653"/>
		<updated>2007-11-07T04:42:09Z</updated>

		<summary type="html">&lt;p&gt;Kazim: I am the spam slayer!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Save these links for now:&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikipedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
21895299452399151244860&lt;br /&gt;
&lt;br /&gt;
== Wiki layout... ==&lt;br /&gt;
&lt;br /&gt;
We really should consider exactly how to lay out the wiki... We should probably see how others (especially the KoL wiki) do it and take inspiration... :)&lt;br /&gt;
&lt;br /&gt;
Also, I&#039;m thinking we should eventually have a page for each function, to make searching the wiki more valuable... :)&lt;br /&gt;
&lt;br /&gt;
--[[User:Daychilde|Daychilde]] 23:00, 8 January 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
I agree with your idea about one-page-per-function.&lt;br /&gt;
&lt;br /&gt;
Also I think every* function&#039;s documentation should show a real-world example of use.  The links to example scripts are a good start in this direction, but some code to read right on the function page would be nice.  (*Yes, even the &amp;quot;you are not cool enough to use this&amp;quot; undocumented stuff.)&lt;br /&gt;
&lt;br /&gt;
A master ASH function list page would be helpful.  When trying to Find a keyword in browser to see if KM implements a given functionality, it&#039;s a minor PITA to have to click into each categorized page and search them all individually.&lt;br /&gt;
&lt;br /&gt;
Also welcome would be some kind of icon, color, or other indicator for newly-added functions.  Master list sorted/sortable by implementation version/date if possible.&lt;br /&gt;
&lt;br /&gt;
Also, on the subject of general layout/UI improvements (since you asked):  for the main page, I prefer a high-level bulleted-listy index/ToC, kinda like the ToCs on the current sourceforge manual pages.  Personally, I find this more useful than the increasingly popular &amp;quot;widgety-portaly-stocks-news-and-weather&amp;quot; look.&lt;br /&gt;
&lt;br /&gt;
Redundancy should be removed wherever possible -- e.g. (ASHRM) in front of every link.  I understand if prefixes of that sort are there to assist in organizing the underlying database, but if not, I think they are totally unnecessary and a distraction -- that is, provided the containing page is appropriately identified with a nice big &amp;quot;ASH Reference Manual&amp;quot; heading at the top, breadcrumbs, etc.&lt;br /&gt;
&lt;br /&gt;
I&#039;ll quit before I arrive at a frenzy of usability fanaticism the likes of which would make J. Nielsen repent like a dirty sinner.  (Got work to do, actually.  Now maybe if there was a &amp;quot;job opportunities&amp;quot; section.......)&lt;br /&gt;
&lt;br /&gt;
--[[User:somebody who sincerely appreciates not having to register/login and probably wouldn&#039;t participate elsewise]] 12:35, 30 January 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
On the other hand, speed-bumping idiot apammers may be worth it.  I could go on for ages about how offensive I find that kind of griefing (If you think life isn&#039;t a game, you&#039;re doing it wrong)--[[User:Metraxis|Metraxis]] 11:27, 18 February 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
== Updating? ==&lt;br /&gt;
Let&#039;s get started, guys. Soon enough, I&#039;ll have a list of all the functions, which I think should go in a wiki page to (as someone above said) search and link. Also, is there a way to do monospacing with code? --[[User:MagiNinjA|MagiNinjA]] 00:35, 29 March 2007 (CDT)&lt;br /&gt;
:You can get mono-spaced text by using &amp;amp;lt;code&amp;amp;gt; tags.  For example, using &amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;EXAMPLE TEXT&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt; produces this as a result.  &amp;lt;code&amp;gt;EXAMPLE TEXT&amp;lt;/code&amp;gt;&lt;br /&gt;
:If you need anymore help, just drop me a line on my [[User_talk:Ksumoe|talk page]]. &amp;amp;#151;[[User:Ksumoe|ksumoe]] &amp;lt;sup&amp;gt;([[User_talk:Ksumoe|talk]] &amp;amp;#149; [[Special:Contributions/Ksumoe|contrib]])&amp;lt;/sup&amp;gt; 18:35, 10 April 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
== Ideas... ==&lt;br /&gt;
&lt;br /&gt;
These are my ideas that I have floating around in my head:&lt;br /&gt;
# A template to put all the relevant information about a function into a table (with proper colored backgrounds and such)&lt;br /&gt;
## I can do this; I just need to know what information is &#039;relevant&#039;.&lt;br /&gt;
# Move this type of discussion to the Community Portal.  Right now the CP is just a bunch of links (we can make a &#039;links&#039; page and add it to the sidebar if needed).&lt;br /&gt;
# An overhaul of the main page.  Someone said that they don&#039;t like the &#039;portal&#039; type of look, but that kind of look has become the &#039;&#039;de facto&#039;&#039; standard for wikis, as it is the most popular.  I&#039;ll pound out a rough draft on a subpage of my user space.&lt;br /&gt;
# Creation of a template structure.  Templates for requesting deletion, protection, etc.  That way non-sysop flagged users can &#039;tag&#039; pages [[Talk:Bad title|such as this]] for deletion.&lt;br /&gt;
# Logo!  &#039;Cause we need to be cool like that.&lt;br /&gt;
# Define a category structure.  Do it now before too many pages get created.&lt;br /&gt;
&lt;br /&gt;
Like I said... I&#039;m here to help.  [[User_talk:Ksumoe|Comments]] &amp;lt;!--or below for that matter--&amp;gt; plox.  &amp;amp;#151;[[User:Ksumoe|ksumoe]] &amp;lt;sup&amp;gt;([[User_talk:Ksumoe|talk]] &amp;amp;#149; [[Special:Contributions/Ksumoe|contrib]])&amp;lt;/sup&amp;gt; 21:17, 13 April 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
I added some links on the home page -- hope that helps users find more documentation... :) -Daychilde&lt;br /&gt;
&lt;br /&gt;
I corrected the Script Repository link to http://www.kolmafia.us from http://www.kolmafia.ua.  ;)  -Regnar&lt;br /&gt;
&lt;br /&gt;
== Links to Redirects? ==&lt;br /&gt;
&lt;br /&gt;
While I understand the need for redirect, why are we linking to redirect pages? Why not use &amp;lt;nowiki&amp;gt;[[Page Title|Displayed Text]]&amp;lt;/nowiki&amp;gt; links instead?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Protection ==&lt;br /&gt;
Seriously, protect the front page. This is getting completely destroyed by spam [[User:80.189.248.109|80.189.248.109]] 12:05, 27 August 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
Is $wgSpamRegex set? If not it should be. If it is, it needs updating. Spam storming in like the flood! -divinewind420&lt;br /&gt;
&lt;br /&gt;
Articles on the subject&lt;br /&gt;
http://nothing.tmtm.com/archives/2571&lt;br /&gt;
http://wiki.evernex.com/index.php?title=Blocking_Spam_in_Mediawiki&lt;br /&gt;
-divinewind420&lt;/div&gt;</summary>
		<author><name>Kazim</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Main_Page&amp;diff=449</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Main_Page&amp;diff=449"/>
		<updated>2007-11-07T04:38:32Z</updated>

		<summary type="html">&lt;p&gt;Kazim: And rolled it back again&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the KoLmafia Wiki.&lt;br /&gt;
&lt;br /&gt;
Please pardon our dust while we remodel.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Progress level: [[Special:Statistics|{{NUMBEROFARTICLES}}]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width:80%;margin-top: .7em;background-color:#F4DF3B;border:2px solid #8663A8&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td class=&amp;quot;box_tgen&amp;quot; style=&amp;quot;text-align:center;color:#000;font-size:90%;border:none;margin: 0;padding:.1em;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Quick Links:&#039;&#039;&#039; &amp;lt;br&amp;gt; [[Your Character]] || [[Item Management]] || [[Equipment]] || [[Skills and Effects]] || [[Adventuring]] || [[In-combat functions for consult scripting]] || [[Miscellaneous]]  || [[String Handling Routines]] || [[Datatype Constants]] || [[Datatype Conversions]] || [[KoLmafia Properties]] || [[Code Samples]]&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Helpful Links ==&lt;br /&gt;
&lt;br /&gt;
KoLMafia:&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net Download KoLMafia]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/manual.html KoLMafia Documentation]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/scripting.html CLI Scripting Manual]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/advanced.html ASH Scripting Manual]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/combat.html Custom Combat Scripting Manual]&lt;br /&gt;
&lt;br /&gt;
[http://www.kolmafia.us The KoLMafia Script Repository]&lt;br /&gt;
&lt;br /&gt;
[http://forums.kingdomofloathing.com/vb/showthread.php?t=88408 The KoLMafia thread on the KoL Forums]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
KoL:&lt;br /&gt;
&lt;br /&gt;
[http://www.kingdomofloathing.com/ The Kingdom of Loathing]&lt;br /&gt;
&lt;br /&gt;
[http://forums.kingdomofloathing.com/ KoL Forums]&lt;/div&gt;</summary>
		<author><name>Kazim</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Main_Page&amp;diff=442</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Main_Page&amp;diff=442"/>
		<updated>2007-11-04T16:15:42Z</updated>

		<summary type="html">&lt;p&gt;Kazim: Rolled back spam again&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the KoLmafia Wiki.&lt;br /&gt;
&lt;br /&gt;
Please pardon our dust while we remodel.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Progress level: [[Special:Statistics|{{NUMBEROFARTICLES}}]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width:80%;margin-top: .7em;background-color:#F4DF3B;border:2px solid #8663A8&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td class=&amp;quot;box_tgen&amp;quot; style=&amp;quot;text-align:center;color:#000;font-size:90%;border:none;margin: 0;padding:.1em;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Quick Links:&#039;&#039;&#039; &amp;lt;br&amp;gt; [[Your Character]] || [[Item Management]] || [[Equipment]] || [[Skills and Effects]] || [[Adventuring]] || [[In-combat functions for consult scripting]] || [[Miscellaneous]]  || [[String Handling Routines]] || [[Datatype Constants]] || [[Datatype Conversions]] || [[KoLmafia Properties]] || [[Code Samples]]&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Helpful Links ==&lt;br /&gt;
&lt;br /&gt;
KoLMafia:&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net Download KoLMafia]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/manual.html KoLMafia Documentation]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/scripting.html CLI Scripting Manual]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/advanced.html ASH Scripting Manual]&lt;br /&gt;
&lt;br /&gt;
[http://kolmafia.sourceforge.net/combat.html Custom Combat Scripting Manual]&lt;br /&gt;
&lt;br /&gt;
[http://www.kolmafia.us The KoLMafia Script Repository]&lt;br /&gt;
&lt;br /&gt;
[http://forums.kingdomofloathing.com/vb/showthread.php?t=88408 The KoLMafia thread on the KoL Forums]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
KoL:&lt;br /&gt;
&lt;br /&gt;
[http://www.kingdomofloathing.com/ The Kingdom of Loathing]&lt;br /&gt;
&lt;br /&gt;
[http://forums.kingdomofloathing.com/ KoL Forums]&lt;/div&gt;</summary>
		<author><name>Kazim</name></author>
	</entry>
</feed>