Raised This Month: $ Target: $400
 0% 

RegEx Type Function?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Minimum
Senior Member
Join Date: Jun 2006
Old 12-31-2006 , 00:44   RegEx Type Function?
Reply With Quote #1

Do you have any idea on how I would go about making a function that would cut up a string and divide it up based on separation characters? I could take one I found out of someone's plugin but that is petty theft and completely wrong in my book.

This is a simple explanation on how it should work.

Say I send in a string with this infomation in it.
- "Steam:Blah1|Steam:Blah2|Steam:Blah3"
I would specify that the | character is the separation character.
Then it would cut the string up and return this:
Code:
sc_output[0] = "Steam:Blah1"
sc_output[1] = "Steam:Blah2"
sc_output[2] = "Steam:Blah3"
I have no idea how Regular Expressions work so I don't even know if this would be classified in the Regular Expression category. Thanks.

Edit: The person or people who help will be in the credits of the plugin I just started.

Last edited by Minimum; 12-31-2006 at 00:48.
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode