<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ScriptingExamples%2Fsplit</id>
	<title>ScriptingExamples/split - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ScriptingExamples%2Fsplit"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/split&amp;action=history"/>
	<updated>2026-06-14T04:57:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/split&amp;diff=3884&amp;oldid=prev</id>
		<title>Vortrex at 19:53, 14 August 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/split&amp;diff=3884&amp;oldid=prev"/>
		<updated>2018-08-14T19:53:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Third Party Code: split}}&lt;br /&gt;
== Description ==&lt;br /&gt;
Split text by spacing, or by a Lua pattern.&amp;lt;br&amp;gt;&lt;br /&gt;
This is useful to split the command arguments string in the function parameter for callbacks bound with &amp;lt;code&amp;gt;[[addCommandHandler]]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Lua:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{LuaCode|1={{ScriptingExamples/UtilityCode/Lua/split}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JavaScript:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
JavaScript has a built-in &amp;lt;code&amp;gt;split()&amp;lt;/code&amp;gt; method for &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; types: [https://www.w3schools.com/jsref/jsref_split.asp]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Squirrel:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Squirrel has a built-in &amp;lt;code&amp;gt;split()&amp;lt;/code&amp;gt; method for &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; types: [http://www.squirrel-lang.org/squirreldoc/stdlib/stdstringlib.html?highlight=split#split]&lt;/div&gt;</summary>
		<author><name>Vortrex</name></author>
	</entry>
</feed>