- (defun vl-string-search-Reverse (Pattern string start-pos / pos pos_lst start-posTrue x)
- (setq pos_lst nil pos 0)
- (while (setq pos (vl-string-search pattern string pos))
- (setq pos_lst (cons pos pos_lst))
- (setq pos (1+ pos))
- )
- (if(null start-pos)(setq start-pos 0))
- (setq start-posTrue (- (strlen string) start-pos (strlen pattern) ))
- (setq pos_lst (vl-remove-if '(lambda(x) (< start-posTrue x)) pos_lst))
- (car pos_lst)
- )
|