2010-08-21 60 views
1

这里是我的文本文件的样子:记事本+带设置高亮颜色陈述

[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]done for the night then?[/color] 
GM: [color=#000000]Yes[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I would prolly plan on altruis notshowing up[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]i've known both of em for 10 or soyears[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]tycho is without power tonight[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]he lives in the middle of farm country[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]on a dirt road off a dirt road[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I went through the massive ice stormback in the 90s that ruined New England's power system, I know allabout it[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]your at 424.42[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I'll send you a statblock for Ciro myenchanter tomorrow[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I struggled with Kazac[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]er not enchanter air wizard...[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]its fun[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I actually been pretty excited forthis AP[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I'll do a nice photoshop map of outkingdom when we get there[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]Im a decent cartographer[/color] 
GM: [color=#000000]This AP is really kick ass when yousit down and read it. Although, if you have player's like my RotRLgames on Fridays, this game would suck.[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]I am the most generalist char statwise here[/color] 
GM: [color=#000000]All of the different roles are on thewiki for you guys to decide what you think would best benefit youand the party.[/color] 
Valens: [color=#000099]REally? 14, 14, 12, 12, 16, 12[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]12,16,14,12,14,12[/color] 
Valens: [color=#000099]LOL[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]nope[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]i'll add it to my watch instantly[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]ps3[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]and wii[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]ps3 just got the search feature[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]if we have to find some people toreplace im fine with that[/color] 
GM: [color=#000000]Plus, NetFlix just signed a deal withShowtime and Epix[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]yea[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]paramount and lion's gate moviesstarting sept 1st[/color] 
Valens: [color=#000099]Goodnight. Having fun. TOo bad Jaycouldn't join us...[/color] 
GM: [color=#000000]Yeah, I will post again on the TangledWeb site and RPTools[/color] 
[i][color=#0000ff]mdh is disconnected.[/color][/i] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]might be worth asking jay again, mighthave cooled down for him its, been about 3-4 weeks[/color] 
[img]asset:/052cf103006dc0a1aee06067b12b2153-40[/img] Adrik Thorgrim: [color=#000000]goodnight see you sat[/color] 

而且我用不工作尝试正则表达式:

[彩\ =#000000]([A -Za-z0-9,。<> ?:“;'{} [] -_ = +!@#$%^ & *()] +)[/ color]

我想要做的是去掉每行的[color =#000000]和[/ color],并保留文本和[img] [/ img]的完整性。

回答

0

嗯...如何用全部替换全部[color=#000000][/color]用'查找&全部替换'(每个关键字一次)?没有必要乱用正则表达式;)

+0

因为还有其他[/ color]块,我想保留像[color = green]和[color = red]。所以如果我去掉所有的[/ color]块,我必须回去找那些线。 – NeoFax 2010-08-21 21:25:11

0

如果你从字面上只想删除#000000的颜色,那么我同意Lukman:使用两个查找的实例&全部替换。

我看到该块中有其他颜色的实例,所以我假设您要替换所有颜色,而不仅仅是#000000。如果是这样,然后使用正则表达式查找&全部替换\[color=#\d*]而不是[color=#000000]字符串的模式。

+0

请注意,从技术上讲,这将取代颜色块内具有不同数字位数的其他块。正确的方法是通过'\ d {6}'来指定数字的数量,但Notepad ++不支持这种方式。如果只想匹配六位数字,则可以使用'\ [color =#\ d \ d \ d \ d \ d \ d]'代替。 – 2010-08-21 03:35:02

+0

感谢您的\ d信息。这有助于在聊天中使用非标准黑色文本的人。我发现我的问题,因为我没有越过[]和 - 在我的RegEx中。它现在工作如何我想要它。再次感谢所有的帮助! – NeoFax 2010-08-21 21:28:32