Mark.
Interesting. I
To be honest, I never used this before (lack of knowledge). I only used the * as wildcard, but there is much more, I see.
(defun findstring (/ LINE LINES TXT)
(setq txt (open (findfile "test.txt") "R"))
(while (setq line (read-line txt))
(if (or (wcmatch line "*`(*,*`)*")
(wcmatch line "*`[*,*`]*")
) ;_ end of or
(setq lines (append lines (list line)))
) ;_ end of if
) ;_ end of while
(close txt)
(mapcar '(lambda (x) (prompt (strcat "\n" x))) lines)
(princ)
)
Is that how you would do it? (I still always go the hard, long way; I'm afraid)
Thanks,
Bernd