search - Add value before specific line in Notepad++ -


i've got document 38.000 lines.

i'd add <div class="kalle"> in front of each line contains word "kalle" , <div class="susi"> in front of each line contains word "susi".

can me how solve problem?

type ctrl+h, then

find what: ^(.*)(kalle|susi)
replace with: <div class="$2">$1
or
replace with: <div class="$2">$1$2 if want keep kalle , susi in string

regular expression must checked not dot matches newline


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -