开发者

Search and replace in VS2008 - linebreak

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜