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

18881Re: [Clip] How to arrange rows in arbitrary fashion

Expand Messages
  • Alec Burgess
    Jan 25, 2009
    • 0 Attachment
      Alec Burgess (burnews@...) wrote (in part) (on 2009-01-25 at
      23:44):
      >
      > (?s)
      > \[
      > (?P<uptoRow2>.*?\r\nRow\x202.*?)(?=\r\n) (?P<befRow5>.*?)
      > (?P<Row5only>\r\nRow\x205.*?)(?=\r\n)
      > (?P<aftRow5>.*?)
      > ]

      oops .... when copy-dragging to construct the Notetab format regex I
      removed the line-feed before ?P<befRow5> from the above. It s/b:

      (?s)
      \[
      (?P<uptoRow2>.*?\r\nRow\x202.*?)(?=\r\n)
      (?P<befRow5>.*?)
      (?P<Row5only>\r\nRow\x205.*?)(?=\r\n)
      (?P<aftRow5>.*?)
      ]

      I'm pretty sure (not tested in Notetab - only in RegexBuddy) that the
      ^!replace lines are fine as is.
      > ^!replace
      > "(?s)\[(?P<uptoRow2>.*?\r\nRow\x202.*?)(?=\r\n)(?P<befRow5>.*?)(?P<Row5only>\r\nRow\x205.*?)(?=\r\n)(?P<aftRow5>.*?)]"
      > >> " [${uptoRow2}${Row5only}${befRow5}${aftRow5}]" rwsai
      >
      > equivalent not using named capturing groups:
      > ^!replace
      > "(?s)\[(.*?\r\nRow\x202.*?)(?=\r\n)(.*?)(\r\nRow\x205.*?)(?=\r\n)(.*?)]"
      > >> "[$1$3$2$4]" rwsai


      --
      Regards ... Alec (buralex@gmail & WinLiveMess - alec.m.burgess@skype)




      [Non-text portions of this message have been removed]
    • Show all 5 messages in this topic