Re: regex problem for comments line



Ehsanul Hoque wrote:
MasterList, // 名称マスター管理クラス
IniFileAccess, // iniファイル管理クラス
MessageAccess, // 共通メッセージ管理クラス
LogAccess, // ログ出力制御クラス
TelephoneCommand, // 電話制御用コマンドクラス
TelephoneDataClass, // 電話制御用データクラス
ExtCtrls, jpeg, StdCtrls;

type "

please help me abut this problem. I want to exclude or split the
comments.( japanese comment parts). I tried many combinations but still
problem.


How about this:

str.gsub!(/\/\/.*/, "")

not working,

also this is not working \/*\s*(\w+)$
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages