you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago

If there's a clear pattern, regex is your friend. I use it for complex find-and-replace actions, or to generate code based on a template and a list of values (find a value, replace it with the template including the value). Full control over the output, more reliable even than manual copy-pasting.

  • source
  • parent