开发者

Search and replace in VS2008 - linebreak

开发者 https://www.devze.com 2022-12-13 10:47 出处:网络
If I need to replace a text <p> this text including the paragraph ne开发者_如何学Pythoneds to be replaced

If I need to replace a text

<p>
this text including the paragraph ne开发者_如何学Pythoneds to be replaced
</p>

How can I do this with VS2008 "search and replace"?

EDIT

One way is to use regex like suggested by Daniel. Its just pretty complicated. The real searchexpression at the end was:

\<div id="searchStore"\>\n[^\<]*\<[^\>]*\>\n[^\<]*\<[^\>]*\>

Thats to much for simple minded persons like us.


Check the "Use Regular Expressions" checkbox in the Search/Replace dialog box and create a Regular Expression to match what you need.

(<p>\r\nthis text including the paragraph needs to be replaced\r\n</p>)

would match your example.

0

精彩评论

暂无评论...
验证码 换一张
取 消