Marco Baringer <mb@bese.it> wrote:
+---------------
| Nikola Skoric <nick-news@net4u.hr> writes:
| > I'd like to do such a simple thing as finding out if a string has a
| > substring in it, but can't seem to find a function to do that.
|
| search - http://www.lisp.org/HyperSpec/Body/fun_search.html
| see also cl-ppcre (http://www.weitz.de/cl-ppcre/)
+---------------
Don't forget MISMATCH <http://www.lisp.org/HyperSpec/Body/fun_mismatch.html>
I actually tend to find myself using it rather more than SEARCH
for simple pattern matches, deconstructions, and peeling off
prefixes & suffixes. Further, alternating calls of MISMATCH and
SEARCH are often useful, using the results of each call in the
:START or [with :FROM-END T] :END keyword args in the next call.
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607