I still know next to nothing nL but I have patched together this with help:
Code: Select all
(set 'result (unique (sort
(find-all {[a-zA-Z]+}
(replace "<[^>]+.*+>" (get-url "http://mysite.com/") "" 0) )
)))
(println result)
(exit)
I thought this should be done with dolist. I still want to unique and sort the compilation of urls that I retreive.
So I tried this:
Code: Select all
(set 'result (unique (sort (dolist 123
(find-all {[a-zA-Z]+}
(replace "<[^>]+.*+>" (get-url "http://mysite.com") "" 0) )
(find-all {[a-zA-Z]+}
(replace "<[^>]+.*+>" (get-url "http://site.com/") "" 0) )
(find-all {[a-zA-Z]+}
(replace "<[^>]+.*+>" (get-url "http://newsite.com/") "" 0) )
))))
(println result)
(exit)
But how would I make dolist not unique and sort until the end of compiling the 'result list?
Thanks!