Talk:Text Parsing Tutorial: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>WildSurvival
No edit summary
>Trappingnoobs
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
----
----
<div style="font-size: 10px;width: 244px;text-align: center;">[[User:WildSurvival| WildSurvival]] | [http://www.roblox.com/User.aspx?ID=2385146| Profile] | [http://www.roblox.com/My/PrivateMessage.aspx?RecipientID=2385146| Send Message]</div> 21:49, 9 July 2011 (UTC)
<div style="font-size: 10px;width: 244px;text-align: center;">[[User:WildSurvival| WildSurvival]] | [http://www.roblox.com/User.aspx?ID=2385146| Profile] | [http://www.roblox.com/My/PrivateMessage.aspx?RecipientID=2385146| Send Message]</div> 21:49, 9 July 2011 (UTC)
::string.gmatch("STRING|X|HELLO","[w+]|") or a variant of it should work. Haven't used string patterns in a while.<div style="border-top: 1px solid #AAA; color:#000000; font-size:10px">Trappingnoobs <span style="color:skyblue">(Writer)</span><span style="color:red"> Have I done something bad? Good? Tell me on my [[User_talk:Trappingnoobs|talk page]]!</span></div>

Latest revision as of 22:05, 9 July 2011

Shouldn't this use string patterns? Much more efficient, you could easily do it in 6 lines with string patterns.

Trappingnoobs (Writer) Have I done something bad? Good? Tell me on my talk page!
I usually dont mess around with strings much but this is the way I knew how to do it. What do you mean by string patterns?

21:49, 9 July 2011 (UTC)

string.gmatch("STRING|X|HELLO","[w+]|") or a variant of it should work. Haven't used string patterns in a while.
Trappingnoobs (Writer) Have I done something bad? Good? Tell me on my talk page!