this post was submitted on 23 Oct 2023
1 points (100.0% liked)

Emacs

305 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

When you search for a string like \(a\)xxx\(b\)yy\(c\) is there some way to create a replacement string where each group can be replaced separately?

If that is not possible the only way I see round it will be to replace better off replacing the whole line with a string splicing the replacements where the groups are.

you are viewing a single comment's thread
view the rest of the comments
[–] slinchisl@alien.top 1 points 11 months ago (1 children)

I posted about whipping up something like this here; maybe it's what you're looking for

[–] vfclists@alien.top 1 points 11 months ago

This sounds exactly like what I'm looking for. I will check it out.