[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : At least one character at beginning and end of words
From: |
uzibalqa |
Subject: |
Re: [External] : At least one character at beginning and end of words |
Date: |
Mon, 15 Aug 2022 09:25:50 +0000 |
------ Original Message -------
On Monday, August 15th, 2022 at 4:36 AM, <tomas@tuxteam.de> wrote:
> On Sun, Aug 14, 2022 at 11:43:10PM +0000, Drew Adams wrote:
>
> > > I want to match the sequence "at least one letter" then "ple"
> > > then "at least one letter". How would a regexp look like.?
> >
> > "[:alpha:]+ple[:alpha:]+"
> >
> > I think you should spend some time reading the Elisp manual section on
> > regexps.
Although I have done
(insert (replace-regexp-in-string
"\\([:alpha:]+\\)ple\\([:alpha:]+\\)" "\\1p\\2" word))
word is being left intact.