Raphael
Raphael

Reputation: 67

Notepad++ Regular Expression to achieve this result

I would like to have this solution using Notepad++

BEFORE:

word word word
word word word
word word word
word word word

AFTER:

+word +word +word
+word +word +word
+word +word +word
+word +word +word

Upvotes: 0

Views: 53

Answers (2)

ooga
ooga

Reputation: 15511

Search for (\w+) replace with +\1

Upvotes: 1

Lauro
Lauro

Reputation: 911

Search for:

(word)

Replace for:

+\1

(But as it was said in the comment, a normal search would easily do that)

But if you are searching by any word, then use this:

Search for:

([A-Za-z]+)

Replace for:

+\1

Upvotes: 1

Related Questions