Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Returning true when parsing a blank line

From: rebol:techscribe at: 8-Feb-2001 21:59

Hi Doug, if your intention should be to remove blank lines, then the following should work quite well: replace/all x "^/^/" "^/" Note that I am assuming that by "blank lines" you mean lines that only contain an eol character, and not lines that contain blanks, or other whitespace characters. Replace is a mezzanine function, you can see the source for replace by entering source replace at the REBOL prompt. You can adept the function to your needs. Hope this also helps, Elan doug hudgeon wrote: