0

I want to have a line break between each character/letter of the word

if the word is < Hello > I want it as

 H

 e

 l

 l

 o

2 Answers 2

1
  • Ctrl+H
  • Find what: .
  • Replace with: $0\n
  • CHECK Wrap around
  • CHECK Regular expression
  • UNCHECK . matches newline
  • Replace all

Explanation:

.           # any character but linebreak

Replacement:

$0          # the whole match, a single character
\n          # a line feed, you can use \r\n for Windows end of line

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here

1
  • 2
    I think the OP should accept your answer for its simplicity. I also learn that it is possible to use $0 with Notepad++. Apr 28, 2020 at 10:19
2

In notepad++, click CTRL+H, then set:

  1. Find what: ([\w\s\d])>

  2. Replace with: $1\n

  3. Set search mode to Regular expression

Example:

Welcome < Hello > world

Output:

W
e
l
o
c
m
e

< 
H
e
l
l
o

> 
w
o
r
d
2
  • Thanks Reddy, thats only for Hello word..This wont work for me... I have a string with 365-366 characters in it, and I want it in vertical format, please !
    – Hytool
    Apr 28, 2020 at 5:40
  • @Hytool See edit Apr 28, 2020 at 7:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .