Loading ...
Sorry, an error occurred while loading the content.

RegEx Bug

Expand Messages
  • Art Kocsis
    This pattern, R(^ h*? R)+ , meant to find all contiguous non text lines, fails if there is no following text line. IOW, if the end of the document consists
    Message 1 of 1 , Oct 25, 2012
    • 0 Attachment
      This pattern, "\R(^\h*?\R)+", meant to find all contiguous non text lines,
      fails if there is no following text line. IOW, if the end of the document
      consists only of white space and line terminators, the pattern fails. If
      any non-white space character is added at the end, the pattern succeeds.
      Note that the pattern is greedy. (Tested in NTS 5.8/fv & 6.2/fv)

      Namaste', Art
    Your message has been successfully submitted and would be delivered to recipients shortly.