Forum: Ruby Re: add to words syntaxes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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
        # second alternative

Sorry for the confusion..

Best regards

This topic is locked and can not be replied to.