Intellij IDEA Replacing Text with Regex 正则表达式替换字符

[ 2013-05-29 11:06:14 | Author: zhenhua ]
Font Size: Large | Medium | Small
JetBrains Intellij IDEA
Replacing Text with Regex

使用正则表达式替换字符串

\stitle="(.*)?"\s*(/>*)
替换为 2$<title>1$</title>

start typing regular expression that describes all title attributes. Note that though the regular expression \stitle=".*?"\s*[/>]* matches contents of the title attribute, it is recommended to capture the groups for referencing them in the Replace field: \stitle="(.*)?"\s*(/>*)

����Ŵ�

Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=752
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=752

View Mode: Show All | Comments: 2 | Trackbacks: 0 | Toggle Order | Views: 11579
1
Quote sivaruby_n
[ 2015-09-07 18:01:19 ]
please provide licence
Quote sivaruby_n
[ 2015-09-07 18:03:29 ]
Quotes From sivaruby_n
please provide licence
1

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
Smilies
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code