Jump to content

Regular expressions: Difference between revisions

m
No edit summary
Line 551:
(progn
(insert (format "%s found in: %s\n" word str) )
(setq regex (format "^.*+%s" word) )
(setq str (replace-regexp-in-string regex (format "left %s" word) str) )
(setq regex (format "%s.*+$" word) )
(setq str (replace-regexp-in-string regex (format "%s right" word) str) )
(insert (format "result: %s\n" str) ))
678

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.