Marco Baringer <email@example.com> wrote:
| Nikola Skoric <firstname.lastname@example.org> 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 Warnock <email@example.com>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607