Madi_Perth

Untitled

Mar 8th, 2023
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Linden Scripting 0.43 KB | Source Code | 0 0
  1. list linkSetSearch(string rexgep, string needle)
  2. {
  3.     list results;
  4.     list search;
  5.     integer x;
  6.    
  7.     if(rexgep == "")
  8.         rexgep = ".*";
  9.        
  10.     search = llLinksetDataFindKeys(rexgep, 0, -1);
  11.    
  12.     for(x = -llGetListLength(search); x < 0; ++x)
  13.     {
  14.         if(!llSubStringIndex(llLinksetDataRead(llList2Key(search, x)), needle))
  15.             results += llList2String(search, x);
  16.     }
  17.     return results;
  18. }
Add Comment
Please, Sign In to add comment