Search found 6 matches
- Tue Mar 26, 2013 2:42 pm
- Forum: newLISP in the real world
- Topic: using regular expression causes newlisp.exe terminated
- Replies: 3
- Views: 2407
- Sat Mar 23, 2013 3:14 pm
- Forum: newLISP in the real world
- Topic: using regular expression causes newlisp.exe terminated
- Replies: 3
- Views: 2407
Re: using of regular expression cause newlisp.exe terminated
I also try to increase the newlisp stack like :
E:\newlisp>newlisp -s 100000 test.lsp
E:\newlisp>newlisp -s 1000000 test.lsp
but seems change nothing.
E:\newlisp>newlisp -s 100000 test.lsp
E:\newlisp>newlisp -s 1000000 test.lsp
but seems change nothing.
- Sat Mar 23, 2013 2:57 pm
- Forum: newLISP in the real world
- Topic: using regular expression causes newlisp.exe terminated
- Replies: 3
- Views: 2407
using regular expression causes newlisp.exe terminated
Files in attachment are test.lsp b.txt c.txt test.lsp: (set 's (read-file "c.txt")) (println (find-all {(?s)target=_blank>(?:(?!target=_blank>).)*?在线观看_百度视频} s ) ) (exit ) while b.txt and c.txt are actually html source code. E:\newlisp>newlisp newLISP v.10.4.7 on Win32 IPv4/6 UTF-8 libffi, execute '...
- Fri Feb 22, 2013 5:03 pm
- Forum: newLISP in the real world
- Topic: encoding url with chinese words meets an error
- Replies: 4
- Views: 2462
Re: encoding url with chinese words meets an error
Thank you Lutz. It works. I should keep on learning NEWLISP. ps: found in google : https://github.com/kosh04/newlisp.snippet/blob/master/net.lsp ;; URL translation of hex codes with dynamic replacement (define (url-encode url (literal "")) (join (map (lambda (c) (if (or (regex "[-A-Za-z0-9$_.+!*'(|)...
- Fri Feb 22, 2013 5:09 am
- Forum: newLISP in the real world
- Topic: encoding url with chinese words meets an error
- Replies: 4
- Views: 2462
Re: encoding url with chinese words meets an error
much thanks to Lutz.
but in url:
(url-encode "爱")
should be %e7%88%b1
how to do that?
but in url:
(url-encode "爱")
should be %e7%88%b1
how to do that?
- Thu Feb 21, 2013 2:54 pm
- Forum: newLISP in the real world
- Topic: encoding url with chinese words meets an error
- Replies: 4
- Views: 2462
encoding url with chinese words meets an error
newLISP v.10.4.5 on Win32 IPv4/6 UTF-8 libffi, execute 'newlisp -h' for more info.
(define (url-encode str)
(replace {([^a-zA-Z0-9])} str (format "%%%2X" (char $1)) 0))
(url-encode "倒")
ERR: invalid UTF8 string in function char。
need help.
(define (url-encode str)
(replace {([^a-zA-Z0-9])} str (format "%%%2X" (char $1)) 0))
(url-encode "倒")
ERR: invalid UTF8 string in function char。
need help.