[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dennou-ruby:002966] Re: 単位がpercentのGphys
- To: dennou-ruby@xxxxxxxxxxx
- Subject: [dennou-ruby:002966] Re: 単位がpercentのGphys
- From: "Seiya Nishizawa" <seiya@xxxxxxxxxxxxxx>
- Date: Fri, 23 May 2008 12:59:15 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Rrl/AERq5p6KFjTgJLZ8TAHlOlsIQsYG5/9zCP0/T1k=; b=T+o5OZT/SciRZcPorcZZeVR+tV1q12msq8zWwkNucYJrCy2qF+ejYDPYg4LzKyw16Djp5a8y4X8HIajlqzIo/HMBXAZ7/ob/qZSHMMnPmCk/sY6wHJgujsRLE+UZKG7NLir9BNXSGVs65oxZ/Ou6a+NAd3dz9/R4Hs7KtvoYKMY=
- Sender: seiyani@xxxxxxxxx
西澤です。
中身はまったくみていないので、
まったく見当はずれかもしれませんが、
>> > if @copy.sub!(%r{^[ \t]*(per|PER|/)[ \t]*}, '') then
が原因であるならば
if @copy.sub!(%r{^[ \t]+(per|PER)[ \t]+},'') || @copy.sub!(%r{^[
\t]*/[^ \t]*},'') then
or
if @copy.sub!(/\s+(per|PER)\s+/,'') || @copy.sub!(/\s*\/\s*/,'') then
にすればいいのですかね?
--
Seiya Nishizawa
Department of Geophysics, Kyoto University
Oiwake-cho Kitashirakawa Sakyo-ku Kyoto, Japan, 606-8502
Tel: +81-75-753-3935