7
7
7697982019-03-08 17:29:35
Notepad++
769798, 2019-03-08 17:29:35

Every three words in a line, enclose in {brackets}+put stick(|) notepad++?

Good afternoon. Over 40k words per line. Enclose every three words in brackets
Example:
Word1 Word2 Word3 Word4 Word5 Word6 Word7 Word8 Word9 Word10 Word11 Word12.....
Need:
{Word1 Word2 Word3|Word4 Word5 Word6} {Word7 Word8 Word9|Word10 Word11 Word12} {Word13.. ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-03-08
@769798

https://regex101.com/r/tUkWqJ/1
Find: (\S+ +\S+ +\S+) +(\S+ +\S+ +\S+)
Replace:{$1|$2}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question