Forum: Ruby Re: add to words syntaxes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-03-16 10:34
(Received via mailing list)
Actually, you may have problems with the tab searching,
because these get converted to several blanks in a row
when read by IO.readlines -
but that can be corrected by letting a column separator
be at least n blanks wide and searching for that -
say, for at least 5 blanks as a separator -

if x=~/ {5,}/
        # first alternative
else
        # second alternative
end

Sorry for the confusion..

Best regards

Axel
This topic is locked and can not be replied to.