generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

string manipulation help?

Previous Thread :: Next Thread 
teamkilled is not online. teamkilled
Joined: 14 Apr 2013
Total Posts: 1748
23 Apr 2015 11:13 PM
let's say this is my string: (html cause HTTPService)

class="name1">teamkilled<

how can I use string manipulation to return "teamkilled"?

HOWEVER, "name1" under class isn't always "name1" and can be shorter/longer
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Apr 2015 11:15 PM
string.match(blah, "teamkileld")?
If name1 changes and teamkilled changes, then you're going to have to find a different point since there might be more elements above that have a class=
Report Abuse
JustinP231 is not online. JustinP231
Joined: 22 Jun 2007
Total Posts: 966
24 Apr 2015 01:48 AM
http://wiki.roblox.com/index.php?title=Function_dump/String_manipulation
The ROBLOX wiki actually has an entire page dedicated to string-manipulating functions. I'd highly reccomend getting familiar with at least a few of the ones listed. Combined with Patterns, they're pretty versatile.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
24 Apr 2015 02:10 AM
string.match(stringythingy, 'class="[%w%s]+">(%w+)<')

That will match class="ANYTHING ALPHANUMERIC">capturestring<
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image