Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM toolbars: how to drag and drop a button
#19
Macro Macro1519
Code:
Copy      Help
str s="http://a.b.c/x?y=z&b=5 http://e.f.g"
ARRAY(str) a
if(!findrx(s "http(s)?://([\w\-]+\.)?[\w\-]+\.\w+/?\S*" 0 4 a)) ret
int i
for i 0 a.len
,out a[0 i]

the regular expression is not perfect


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)