// Written By: Ĵyм Ѡҩℓƒ (Jym Resident)
/*
LICENCE:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
or you may visit - http://license.idjhost.com/
*/
// DESCRIPTION
// Finds url's in a string.
string text = "For example, this is a string, and SL will automatically 'URLify' it, but how do I do that myself? https://www.youtube.com/feed/subscriptions";
string find = "http";
default{
state_entry(){
integer i = 0;
list temp = llParseString2List(text,[" "],[]);
integer count = llGetListLength(temp);
while(i < count){
if(llGetSubString(llList2String(temp,i),0,3) == "http"){
//Found URL
llSay(0,llList2String(temp,i));
}
i++;
}
}
}
Comments
0 B
|👍
/👎
0 B
|0 👍
/0 👎
0 B
|👍
/👎