PDA

View Full Version : Finding "ikThis" in string "robo_ikThis"


Toxinhead
09-24-2009, 12:00 PM
Hey there
Is there anyway to either see if "ikThis" is in the string "robo_ikThis" or somehow query if the string equals [0-9,a-b]+"_ikThis", using [0-9,a-b] as some sort of placeholder. I know you can do this PHP scripting!

Thanks!

mlefevre
09-24-2009, 01:16 PM
string $testString = "ikThis";
string $anotherString = "robo_ikThis";
string $findString = `match $testString $anotherString`;

if($findString == $testString)
{
print ("Found " + $testString + " in " + $anotherString);
}

Toxinhead
09-24-2009, 10:29 PM
Thanks bro, match is the way to go :)

CGTalk Moderation
09-24-2009, 10:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.