2010-08-21 62 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