<div id="topic-title"> <h1> <a href="/t/splitting-a-string/615260">Splitting a String</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="https://devforum.roblox.com/c/help-and-feedback/54" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #99DAFF'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Help and Feedback</span> </span> </a> <meta itemprop="position" content="1" /> </span> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="https://devforum.roblox.com/c/help-and-feedback/scripting-support/55" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #D64F4F'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Scripting Support</span> </span> </a> <meta itemprop="position" content="2" /> </span> </div> </div> <div id='post_1' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/TypicallyShadow'><span itemprop='name'>TypicallyShadow</span></a> (Shad) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T21:38:25Z' class='post-time'> June 7, 2020, 9:38pm </time> <meta itemprop='dateModified' content='2020-06-07T21:38:25Z'> <span itemprop='position'>#1</span> </span> </div> <div class='post' itemprop='articleBody'> <p>Hey all! I hope you’re keeping safe during this epidemic. I’ve tried searching for an answer to my question but haven’t found one yet.</p> <p>I want to split a string which would be <code>username:reason</code> by the colon and then put this into two arguments to use them later, how would I do this?</p> <p>Side-note: the reason part won’t just be a word, it’ll be a sentence or so.</p> </div> <meta itemprop='headline' content='Splitting a String'> <meta itemprop='keywords' content=''> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="12" /> <span class='post-likes'>12 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div id='post_2' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/Tom_atoes'><span itemprop='name'>Tom_atoes</span></a> (Tom_atoes) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T21:42:19Z' class='post-time'> June 7, 2020, 9:42pm </time> <meta itemprop='dateModified' content='2020-06-07T21:42:19Z'> <span itemprop='position'>#2</span> </span> </div> <div class='post' itemprop='articleBody'> <p>You can use <code>string.split(string, split)</code> for this. In your case you would want to use string.splt(“username:reason”, “:”). This will return a table of values containing what you need.</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="4" /> <span class='post-likes'>4 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="1" /> </div> </div> <div id='post_3' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/TypicallyShadow'><span itemprop='name'>TypicallyShadow</span></a> (Shad) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T21:43:14Z' class='post-time'> June 7, 2020, 9:43pm </time> <meta itemprop='dateModified' content='2020-06-07T21:43:14Z'> <span itemprop='position'>#3</span> </span> </div> <div class='post' itemprop='articleBody'> <p>How will this “table of values” be returned and how can I put them into arguments? Apologies, I am quite new to coding in lua. Side-note: you spelt split as splt</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="1" /> </div> </div> <div id='post_4' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/Rare_tendo'><span itemprop='name'>Rare_tendo</span></a> (Rare_tendo) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T21:43:59Z' class='post-time'> June 7, 2020, 9:43pm </time> <meta itemprop='dateModified' content='2020-06-07T21:46:30Z'> <span itemprop='position'>#4</span> </span> </div> <div class='post' itemprop='articleBody'> <p>You can use this:</p> <pre><code class="lang-lua">local username, reason = unpack(("username:reason"):split(":")) </code></pre> <p>Essentially, <code>string.split</code> just returns the values in an array, so you can iterate over the table:</p> <pre><code class="lang-lua">local tbl = ("username:reason"):split(":") for _, v in pairs(tbl) do print(v) -- prints "username", then "reason" end </code></pre> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="3" /> <span class='post-likes'>3 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://devforum.roblox.com/t/how-to-detect-a-number-value-from-a-string/1946660/2" itemscope itemtype='http://schema.org/DiscussionForumPosting' itemprop='item'> <meta itemprop='url' content='https://devforum.roblox.com/t/how-to-detect-a-number-value-from-a-string/1946660/2'> <span itemprop='name'>How to detect a number value from a string</span> </a> <meta itemprop='position' content='1'> </div> </div> </div> <div id='post_5' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/Tom_atoes'><span itemprop='name'>Tom_atoes</span></a> (Tom_atoes) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T21:46:35Z' class='post-time'> June 7, 2020, 9:46pm </time> <meta itemprop='dateModified' content='2020-06-07T21:46:35Z'> <span itemprop='position'>#5</span> </span> </div> <div class='post' itemprop='articleBody'> <pre><code class="lang-lua">local Message = "1:2" -- // this is the message you want to split local SplitMessage = string.split(Message, ":") -- // the second arguement is where you want to split your message. local Value1, Value2 = SplitMessage[1], SplitMessage[2] -- // since split message returned an array, you can use array[1] and array[2] to get the values of the array. print(Value1, Value2) -- // Prints out 1 and 2. </code></pre> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="9" /> <span class='post-likes'>9 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="1" /> </div> </div> <div id='post_6' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/TypicallyShadow'><span itemprop='name'>TypicallyShadow</span></a> (Shad) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T21:57:20Z' class='post-time'> June 7, 2020, 9:57pm </time> <meta itemprop='dateModified' content='2020-06-07T21:57:20Z'> <span itemprop='position'>#6</span> </span> </div> <div class='post' itemprop='articleBody'> <aside class="quote no-group" data-username="Tom_atoes" data-post="5" data-topic="615260"> <div class="title"> <div class="quote-controls"></div> <img loading="lazy" alt="" width="20" height="20" src="https://doy2mn9upadnk.cloudfront.net/user_avatar/devforum.roblox.com/tom_atoes/40/5130280_2.png" class="avatar"> Tom_atoes:</div> <blockquote> <p><code>SplitMessage[2]</code></p> </blockquote> </aside> <p>Does this also join everything, for example, if I had <code>1:2 and 3</code> would it just return <code>2</code> or <code>2 and 3</code> as that’s what I am looking for.</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="2" /> </div> </div> <div id='post_7' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/Tom_atoes'><span itemprop='name'>Tom_atoes</span></a> (Tom_atoes) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T22:01:15Z' class='post-time'> June 7, 2020, 10:01pm </time> <meta itemprop='dateModified' content='2020-06-07T22:01:15Z'> <span itemprop='position'>#7</span> </span> </div> <div class='post' itemprop='articleBody'> <p>SplitMessage[2] refers to the where the string was split between. If there was more text after “2” in the Message variable SplitMessage[2] would also return that. Adding more “:”'s to the Message variable will allow you use split the message into more values. So yes, if you had <code>"1:2 and 3"</code> as your string it would return <code>"2 and 3"</code>. However if you had <code>1:2:3</code> as your string SplitMessage[2] would only return <code>2</code>.</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="2" /> <span class='post-likes'>2 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="1" /> </div> </div> <div id='post_8' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/CriticCritic'><span itemprop='name'>CriticCritic</span></a> (CriticCritic) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T22:01:17Z' class='post-time'> June 7, 2020, 10:01pm </time> <meta itemprop='dateModified' content='2020-06-07T22:01:17Z'> <span itemprop='position'>#8</span> </span> </div> <div class='post' itemprop='articleBody'> <p>It would return <code>2 and 3</code> as it’s splitting the string at the “:”</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div id='post_9' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/TypicallyShadow'><span itemprop='name'>TypicallyShadow</span></a> (Shad) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T22:01:45Z' class='post-time'> June 7, 2020, 10:01pm </time> <meta itemprop='dateModified' content='2020-06-07T22:01:45Z'> <span itemprop='position'>#9</span> </span> </div> <div class='post' itemprop='articleBody'> <p>Thanks, you’ve been a huge help!</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div id='post_10' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/Isocortex'><span itemprop='name'>Isocortex</span></a> (Isocortex) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-07T23:27:43Z' class='post-time'> June 7, 2020, 11:27pm </time> <meta itemprop='dateModified' content='2020-06-07T23:37:10Z'> <span itemprop='position'>#10</span> </span> </div> <div class='post' itemprop='articleBody'> <p>String.split is great, but also highly recommend you read up on <a href="https://www.lua.org/pil/20.2.html" rel="noopener nofollow ugc">Lua patterns</a></p> <p>e.g.</p> <pre><code class="lang-lua">local str = 'Builderman:like patterns' str:gsub('(.*):(.*)', function (user, reason) print( ('The user \'%s\' would like you to know that they \'%s\''):format(user, reason) ) --[!] Prints: The user 'Builderman' would like you to know that they 'like patterns' end) </code></pre> <p>Why should you care? You’ll be able to have more control over what you interpret from the string. For example, if you passed ‘Builderman:like patterns:) really important message here btw!’ to the above code or to string.split you would get:</p> <pre><code class="lang-lua">--&gt; In the case of string.split: local str = 'Builderman:like patterns:) really important message here btw!' local split = str:split(':') local user = split[1] -- Would be: 'Builderman' local reason = split[2] -- Would be: 'like patterns' --&gt; In the case of the gsub above str:gsub('(.*):(.*)', function (user, reason) --[!] user would be 'Builderman:like patterns' --[!] reason would be ') really important message here btw!' end) </code></pre> <p>As you can see, neither of these are perfect because we miss the ‘really important message’, but there’s no easy way to solve this issue in string.split unless you sanitise or only look for the first colon, concatenating the rest of the values. However, with pattern matching…</p> <p>We know that Roblox usernames only contain alphanumeric characters, so we can alter our pattern matching accordingly:</p> <pre><code class="lang-lua">local str = 'Builderman:like patterns:) really important message here btw!' str:gsub('(%a*):(.*)', function (user, reason) --[!] User is now defined as 'Builderman' --[!] Reason is now defined as ') really important message here btw!' print( ('The user \'%s\' would like you to know that they \'%s\''):format(user, reason) ) --[!] Prints: The user 'Builderman' would like you to know that they 'like patterns:) really important message here btw!' end) </code></pre> <p>Voila, we have now avoided a potential disaster (dependent on what your code is being used for). Always look for edge cases!</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="28" /> <span class='post-likes'>28 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="1" /> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://devforum.roblox.com/t/how-to-split-a-in-a-string/1217361" itemscope itemtype='http://schema.org/DiscussionForumPosting' itemprop='item'> <meta itemprop='url' content='https://devforum.roblox.com/t/how-to-split-a-in-a-string/1217361'> <span itemprop='name'>How to split a &quot;:&quot; in a string?</span> </a> <meta itemprop='position' content='2'> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://devforum.roblox.com/t/how-to-remove-a-strings-first-line/1225519/5" itemscope itemtype='http://schema.org/DiscussionForumPosting' itemprop='item'> <meta itemprop='url' content='https://devforum.roblox.com/t/how-to-remove-a-strings-first-line/1225519/5'> <span itemprop='name'>How to remove a string&#39;s first line?</span> </a> <meta itemprop='position' content='3'> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://devforum.roblox.com/t/finding-how-much-words-can-fit-on-1-textbox/894578/2" itemscope itemtype='http://schema.org/DiscussionForumPosting' itemprop='item'> <meta itemprop='url' content='https://devforum.roblox.com/t/finding-how-much-words-can-fit-on-1-textbox/894578/2'> <span itemprop='name'>Finding how much words can fit on 1 textbox</span> </a> <meta itemprop='position' content='4'> </div> </div> </div> <div id='post_11' itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Developer Forum | Roblox'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/c/3/2/5/c325b8f46fd0b3c5b418b005b66c7af661539d44.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://devforum.roblox.com/u/TypicallyShadow'><span itemprop='name'>TypicallyShadow</span></a> (Shad) </span> <link itemprop="mainEntityOfPage" href="https://devforum.roblox.com/t/splitting-a-string/615260"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-06-08T13:06:54Z' class='post-time'> June 8, 2020, 1:06pm </time> <meta itemprop='dateModified' content='2020-06-08T13:06:54Z'> <span itemprop='position'>#11</span> </span> </div> <div class='post' itemprop='articleBody'> <p>I actually never thought of that, thanks!</p> </div> <meta itemprop='headline' content='Splitting a String'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="2" /> <span class='post-likes'>2 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div>