月度归档:2004年08月

UE里面的RE

格式跟UNIX/Perl略有不同吧,以下是UE帮助里面的

Symbol

Function

%

Matches the start of line – Indicates the search string must be at the beginning of a line but does not include any line terminator characters in the resulting string selected.

(match 行首)

$

Matches the end of line – Indicates the search string must be at the end of line but does not include any line terminator characters in the resulting string selected.

(match 行末)

?

Matches any single character except newline

(match 除新行外的任意单一字符)

*

Matches any number of occurrences of any character except newline

(match 除新行外的任意数目的任意字符)

+

Matches one or more of the preceding character/expression.

At least one occurrence of the character must be found.

(match 除新行外的超过0个的指定字符)

++

Matches the preceding character/expression zero or more times.

(match 指定字符的0或多次)

^b

Matches a page break

(match 一个分页符)

^p

Matches a newline (CR/LF) (paragraph) (DOS Files)

(match dos格式下的一个新行符)

^r

Matches a newline (CR Only) (paragraph) (MAC Files)

(MAC 格式)

^n

Matches a newline (LF Only) (paragraph) (UNIX Files)

(UNIX格式)

^t

Matches a tab character

(match tab符)

[ ]

Matches any single character, or range in the brackets

(match 单一的字符,或者括号内的字符范围中的一个)

^{A^}^{B^}

Matches expression A OR B

(match 表达式A或表达式B)

^

Overrides the following regular expression character

(忽略后面的正则表达式)

^(…^)

Brackets or tags an expression to use in the replace command.

A regular expression may have up to 9 tagged expressions, numbered according to their order in the regular expression.The corresponding replacement expression is ^x, for x in the range 1-9.

Example: If ^(h*o^) ^(f*s^) matches “hello folks”, ^2 ^1 would replace it with “folks hello”.

(将括号中的表达式赋给^1~^9使用,^1~^9应用在replace中)

历史与想象中的战役 牧野

牧野!

尽管云海玉弓缘里面的西门牧野那么失败,但是名字跟这个著名的战场一挂钩,就显得此人有古风(古风可是现代很多人拼命想附庸的东西哦)。

说回来,其实纣王也是一个将才,曾经东征西战,可惜这时候派那么多的军队(虽然很多是奴隶)去打东夷的少数民族。可惜内部空虚,正好被武王钻了空子,纣王拉了一大批奴隶来打仗,奴隶厌战,而且武王一直节节连胜,势如破竹杀到牧野,纣王这边奴隶倒戈了,于是输得很惨。

记忆中的牧野的图片最早是上下五千年里面看到的,就是一堆奴隶把戈倒了过来。

牧野这个地名,大概就是用来放牧的原野了。

不过我觉得这个战例作为以少胜多是很不妥的,因为事实上周联军更强,商军仓促而成,未经良好训练,军心涣散,即使人多也说明不了什么。而武王乘连胜的气势进击朝歌,士气旺盛,实在很难抵挡。

这是一场必胜的战争中的必胜的战役。