June 25
看过变形金刚一,除了特效的堆叠以外,情节故事都一无是处,正是先下风行的电影纯特效派。除了能勾起对童年时代的回忆以外,这个片子真的很逊。
昨天路过万达,琢磨着是不是随便看个电影,正好就碰上了变形金刚二上映,人太多,居然买不上票。我郁闷的不行。
没看成二,但是从一来看,我对它也没有什么期待。看到昨天那种轰动的场面,不由得我不感叹,现在电影不是拍出来的,是靠特效“做”出来的,再靠宣传吹吹,什么烂片也能变成“大片”。
June 11
今天要对一组文本数据做处理,去掉一些不必要的,自然就想到了使用正则表达式。首先是用UltraEdit来做,发现很不方便,支持的规则比较少。例如,查找两位数字,只能用[0-9][0-9],不能使用类似[0-9]^2的模式。而且,不能对查找的字串分组,例如这样的用法是不合法的{12}+。
要实现我的目的,用这样的语法,匹配模式会写的很啰嗦,决定换个工具试试。选了M$的VS,一查才发现,功能还蛮丰富的,以前干这活都用的EditPlus,用VS看来会更方便一点。抄录MSDN相关部分如下:
| Expression |
Syntax |
Description |
|
Any character |
. |
Matches any single character except a line break. |
|
Zero or more |
* |
Matches zero or more occurrences of the preceding expression, making all possible matches. |
|
One or more |
+ |
Matches at least one occurrence of the preceding expression. |
|
Beginning of line |
^ |
Anchors the match string to the beginning of a line. |
|
End of line |
$ |
Anchors the match string to the end of a line. |
|
Beginning of word |
< |
Matches only when a word begins at this point in the text. |
|
End of word |
> |
Matches only when a word ends at this point in the text. |
|
Line break |
\n |
Matches a platform-independent line break. In a Replace expression, inserts a line break. |
|
Any one character in the set |
[] |
Matches any one of the characters within the []. To specify a range of characters, list the starting and ending character separated by a dash (-), as in [a-z]. |
|
Any one character not in the set |
[^...] |
Matches any character not in the set of characters following the ^. |
|
Or |
| |
Matches either the expression before or the one after the OR symbol (|). Mostly used within a group. For example, (sponge|mud) bath matches "sponge bath" and "mud bath." |
|
Escape |
\ |
Matches the character that follows the backslash (\) as a literal. This allows you to find the characters used in regular expression notation, such as { and ^. For example, \^ Searches for the ^ character. |
|
Tagged expression |
{} |
Matches text tagged with the enclosed expression. |
|
C/C++ Identifier |
:i |
Matches the expression ([a-zA-Z_$][a-zA-Z0-9_$]*). |
|
Quoted string |
:q |
Matches the expression (("[^"]*")|('[^']*')). |
|
Space or Tab |
:b |
Matches either space or tab characters. |
|
Integer |
:z |
Matches the expression ([0-9]+). |
The list of all regular expressions that are valid in Find and Replace operations is longer than can be displayed in the Reference List. You can also insert any of the following regular expressions into a Find what string:
| Expression |
Syntax |
Description |
|
Minimal — zero or more |
@ |
Matches zero or more occurrences of the preceding expression, matching as few characters as possible. |
|
Minimal — one or more |
# |
Matches one or more occurrences of the preceding expression, matching as few characters as possible. |
|
Repeat n times |
^n |
Matches n occurrences of the preceding expression. For example, [0-9]^4 matches any 4-digit sequence. |
|
Grouping |
() |
Groups a subexpression. |
|
nth tagged text |
\n |
In a Find or Replace expression, indicates the text matched by the nth tagged expression, where n is a number from 1 to 9.
In a Replace expression, \0 inserts the entire matched text. |
|
Right-justified field |
\(w,n) |
In a Replace expression, right-justifies the nth tagged expression in a field at least w characters wide. |
|
Left-justified field |
\(-w,n) |
In a Replace expression, left-justifies the nth tagged expression in a field at least w characters wide. |
|
Prevent match |
~(X) |
Prevents a match when X appears at this point in the expression. For example, real~(ity) matches the "real" in "realty" and "really," but not the "real" in "reality." |
|
Alphanumeric character |
:a |
Matches the expression ([a-zA-Z0-9]). |
|
Alphabetic character |
:c |
Matches the expression ([a-zA-Z]). |
|
Decimal digit |
:d |
Matches the expression ([0-9]). |
|
Hexadecimal digit |
:h |
Matches the expression ([0-9a-fA-F]+). |
|
Rational number |
:n |
Matches the expression (([0-9]+.[0-9]*)|([0-9]*.[0-9]+)|([0-9]+)). |
|
Alphabetic string |
:w |
Matches the expression ([a-zA-Z]+). |
|
Escape |
\e |
Unicode U+001B. |
|
Bell |
\g |
Unicode U+0007. |
|
Backspace |
\h |
Unicode U+0008. |
|
Tab |
\t |
Matches a tab character, Unicode U+0009. |
|
Unicode character |
\x#### or \u#### |
Matches a character given by Unicode value where #### is hexadecimal digits. You can specify a character outside the Basic Multilingual Plane (that is, a surrogate) with the ISO 10646 code point or with two Unicode code points giving the values of the surrogate pair. |
湖南卫视最近放了不少韩剧,偶尔看了几集,感觉还不错。尤其比较喜欢一个叫韩彩英的女演员,长的不算漂亮,只是觉得她的眼睛狠勾人,一直戏称之“狐狸眼睛”。有图为证:
且说狐狸眼睛主演了一部连续剧叫《威尼斯之恋》,前日湖南卫视放的时候我错过了,近日在网络上搜了视频来看,昨天看到第六集了,发表一下感想。
故事情节嘛还是比较老套的,男主角英俊潇洒且多情又多金,女主角美丽迷人但出身寒微……看完了作为铺垫的第一集,我想,莫非这又是一个经典的白马王子+灰姑娘戏?差点就不想看了,最后还是狐狸眼睛莫大的魅力促使我继续下去。后来的发展证明:情节之跌宕起伏,让我叹为观止啊!
且说第一集中讲到,狐狸眼睛不爱学习,专爱厨艺,因此不受其老母待见,于是伙同男二号私奔意大利学习意菜的烧法。话说这个男二号,一看就知道是男二号。为什么呢?出现的太早,头十个镜头就有他,长得也很抽象,又对狐狸眼睛一往情深,于是我判了他死刑:多半跟狐狸眼睛纠缠多年,最后还是要将狐狸眼睛送到男一号的怀中。
第二集:男一号华丽登场,在美丽的威尼斯邂逅了狐狸眼睛。当然少不得一番误会和斗争,最终两人排除重重阻挠,在认识的第一天晚上义无反顾的上了床。嗯,发展有点出乎俺的意料了。
第三集:挨千刀的男二号登场,成功的制造了男一号和狐狸眼睛之间的误会,于是One night stand之后,男一号潇洒离去之。且说这光阴似箭,时光如梭,转眼间就到了六年后,狐狸眼睛早已回到韩国。让人大跌眼镜的是,狐狸眼睛居然已有一子!!!时光倒流,我们发现是不负责任的男一号让狐狸眼睛中了镖,痴情的狐狸眼睛为了这个只认识了一天的男子,毅然决定生下这个孩子。嗯,看到这里我感觉编剧在写这段的时候可能脑袋刚被门夹过……
第四集:可怜的狐狸眼睛因为孩子的缘故,一直没有正式的工作,生活窘迫。恰逢男一号回国发展,巧合的是其家族就是开馆子的,而且是意大利馆子,于是开饭馆的男一号和会做意大利拉面的狐狸眼睛华丽的重逢了……
第五集:在饭馆的工作过程中,男一号和狐狸眼睛在劳动中结下了深厚的友谊,男一号对狐狸眼睛产生了好感,意图将这种友谊升华为爱情,被狐狸眼睛严厉的拒绝之。(嗯,狐狸眼睛这时候肯定是猪油蒙了心了,面对孩子他爹兼梦中情人的求爱居然Say no。)男一号持续追求,在即将成功的关键时刻,有奸人(女二号)举报狐狸眼睛已有一子,男一号暴怒,当面质询。狐狸眼睛拒不交代,遂与男一号吹之。
第六集上半集:男一号在没有狐狸眼睛的日子里,备受煎熬,准备接受这个孩子继续追求狐狸眼睛(噢,多么伟大的男人)
如果是国产连续剧,估摸着再用半集让男一号发现这个孩子是自己的骨肉,故事就该完美落幕了……
可是,这是韩剧,后边还有十九集,看到这里我不由得有点佩服编剧,这还有十几个小时的故事他该怎么编啊?
PS:片中的插曲,一半以上都是Only You,在高潮过后的情节中总是响起Only You,让人觉得异常的滑稽,尽管这里放的是原版的……
June 09
这种事情时不时会出现一次,不知道是MicroSoft不会做互联网呢还是政府又把这个网站给屏蔽了?
还好我不是一个真正的Blogger,用不了也无所谓……