[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bep] wmail support mode?



 r高橋です。

Reply TAKAHASHI Naoto <ntakahas@...>'s message:

} もし正規表現で検索したいのなら re-search-forward です。
} 先頭の re は regular expression の意味です。

 正規表現で悩んでいます。

 空白行(newlineが二つ続くところ……でしょうか?)を検索しようとしていま
す。

 infoの"Syntax of Regular Expressions"には、

} In Lisp syntax, the string constant begins and ends with a double-quote.  
} `\"' stands for a double-quote as part of the regexp, `\\' for a backslash 
} as part of the regexp, `\t' for a tab and `\n' for a newline.
..
} To enter the same regexp interactively, you would type <TAB> to enter a 
} tab, and `C-j' to enter a newline.  You would also type single backslashes 
} as themselves, instead of doubling them for Lisp syntax.

と書かれています。

 それで、
M-x re-search-forward <RET> C-j <RET>
としようとしたのですが、C-jのところでほんとうに改行されてしまって検索でき
ません。

M-x re-search-forward <RET> \n <RET>
とすると、テキスト中のnを検索してしまって、
M-x re-search-forward <RET> "\n" <RET>
とすると、"n"を検索してしまいます。

 どうすればいいでしょうか(^_^;)。
上のinfoにある"string constant"というのはなんですか?


**-***-***-***-***-***-***-***-***-***-***-***-**
           Reiko TAKAHASHI  (高橋玲子)
         E-mail:  HFC03614@...
         ICQ UIN: 85924121  (Twinkle)
**-***-***-***-***-***-***-***-***-***-***-***-**