01-03-2011, 08:03 PM
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
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
