 - (defun split2 (str sp / str1)
- (cond
- ((= str nil) nil)
- ((= sp nil) nil)
- ((= str "") "")
- ((= sp "") str)
- (t
- (setq str1 (strcat "((\"" str "\"))"))
- (while (vl-string-search sp str1)
- (setq str1 (vl-string-subst "\")(\"" sp str1))
- )
- (apply 'append (read str1))
- )
- )
- )
|