Advertisement
yojimbos_law

group_string() is your friend. [terrible devster alias]

Jun 1st, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. > alias devstereffectrange => ashq for i from group_string($string[%%], "(\\d+)\\s(\\d+)")[0][1].to_int() to group_string($string[%%], "(\\d+)\\s(\\d+)")[0][2].to_int(){ visit_url("[redacting devvy url because why not]"+i);} print("yep, got effects "+group_string($string[%%], "(\\d+)\\s(\\d+)")[0][1]+" through "+group_string($string[%%], "(\\d+)\\s(\\d+)")[0][2]);
  2.  
  3. String successfully aliased.
  4. devstereffectrange => ashq for i from group_string($string[%%], "(\\d+)\\s(\\d+)")[0][1].to_int() to group_string($string[%%], "(\\d+)\\s(\\d+)")[0][2].to_int(){ visit_url("[redacting devvy url because why not]"+i);} print("yep, got effects "+group_string($string[%%], "(\\d+)\\s(\\d+)")[0][1]+" through "+group_string($string[%%], "(\\d+)\\s(\\d+)")[0][2]);
  5.  
  6. > devstereffectrange 2000 2002
  7.  
  8. yep, got effects 2000 through 2002
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement