String matching: Difference between revisions

m
(Added Emacs Lisp)
Line 884:
(progn
(setq regex (format "^%s.+*$" word) )
(if (string-match regex str)
Line 896:
(insert (format "%s not found in: %s\n" word str) ))
(setq regex (format "^.+*%s$" word) )
(if (string-match regex str)
678

edits