Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM toolbars: how to drag and drop a button
#18
ok. i think my regex is working, but it only returns the first found url.
sorry again, but i am really rusty :oops:

i know i need to use foreach or for to parse all lines. please help.

,QMDRAGDROPINFO& di=+lParam
,,sel wParam
,,,case 3 ;;drop
,,,,str s url
,,,,if(!di.GetText(s)) ret
,,,,if(findrx(s "http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" 0 0 url)<0) ret
,,,,out url


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)