Advertisement
Madi_Perth

linkSetSearch

Mar 7th, 2023 (edited)
1,529
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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement