开发者

Eclipse regex for finding the following string

I want to search all files in my project in eclipse and replace all occurences of ConnectionID="lettersandnumbers"

what is the regex fo开发者_运维技巧r the bit between the quotation marks(including the quotations)?


assuming you want to replace the String contents, look for

(ConnectionID=").*?(")

and replace with

$1replacement$2

where replacement is what you want to replace the String with :-)


Put this in your search box:

ConnectionID=\"[\w]+\"


Try this:

ConnectionID="[\p{L}\p{N}]*"

This will match all Unicode letters and numbers. Remember, à is a letter too.


I would search for:

ConnectionID="(.*)"

If you're not interested in keeping the chars between quotes you can use

ConnectionID=".*"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜