Im using a programme to get word/char-frequencies from a txt file, and im wondering if there is an easy way of searching through a string looking for a
regex pattern?
I would for example like to do something like this:
- Code: Select all
(defun check-word (word)
(let ((s word))
(setf s (string s))
(search "[^A-Za-z]" s)))
to check that a word does not contain any other chars than A-Z or a-z, where "[^A-Za-z]" is the regular expression.
Anyone know if such a thing is possible to achive?
