I am looking to match the word as
on its own and am using
(s-replace-regexp "\\<as\\>" "s" word)
Is this the way to it?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI would use "\\bas\\b"
in most situations, but YMMV.