P
P
PotLo2019-10-06 11:52:31
Notepad++
PotLo, 2019-10-06 11:52:31

How to change every Nth character in Notepad?

Before:
Example. Example. Example. Example. Example. Example. Example.
After:
Example. Example. Example (REPLACEMENT) Example. Example. Example (REPLACEMENT) Example.
You need to replace every Nth character with another. For example, a point is taken, can you help with how to implement this and how to increase the gap (here, for example, every third point is given, how can you do every fifth , seventh , and so on)?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-10-06
@PotLo

Something like this (?:.*?\K symbol ){N}
Example for every third dot https://regex101.com/r/A7aQ0I/1
Option without \K https://regex101.com/r/A7aQ0I/2
Find: ((?:.*?\.){2}.*?)\.
Replace:$1 (ЗАМЕНА)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question