Skip to content

FAQ #109

Answered by facelessuser
y377 asked this question in Q&A
FAQ #109
Oct 16, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

The only way to pull off what, in the way that you want to, is to capture both the header and the date in one search so you have access to all the required capture groups in one find/replace. This is a simple example that is similar but not the same.

While it may be possible, this is not really the most efficient approach.

RegReplace does not have a way to find something and copy it for use in later patterns. Everything that is to be replaced must also contain all the context needed for the replace.

To be honest, this particular case probably would be best done with a script written specifically for the task.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@y377
Comment options

@facelessuser
Comment options

Answer selected by y377
@y377
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
S: triage Issue needs triage.
2 participants
Converted from issue

This discussion was converted from issue #108 on October 16, 2023 20:11.