Vlad Gray
Vlad Gray

Reputation: 29

Regular Expression search for sublime3

I have a question, is it possible to use regex search in a sublime3 to do that thing? I search for these two < p >< /p > and then combine them in to 1.

Eg:

< p >lorem ipsum etc< /p > < p >lorem ipsum...< /p >

to

 < p >lorem ipsum etc lorem ipsum...< /p >

Upvotes: 1

Views: 42

Answers (1)

npinti
npinti

Reputation: 52185

You use this <\s*\/p\s*>\s*<\s*p\s*> to replace < /p > < p > with a white space.

This should effectively replace this: < /p > < p > with this: . An example of the expression is available here.

Upvotes: 1

Related Questions