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

22186Re: [Clip] Regular Expression Not Greedy

Expand Messages
  • Alex Plantema
    Oct 30, 2011
    • 0 Attachment
      Op zondag 30 oktober 2011 08:24 schreef Don:

      > I am trying to get from this:
      > 1 Okemos 56 4 7 9 17 19 23 46
      > 4 Daniel Kroth 16:41.00
      > 7 Daniel Bartkowski 16:45.00
      > 9 David McKinley 16:50.00
      > 17 Beruk Scarlett 17:09.00
      > 19 Seph Dabrowski 17:15.00
      > 23 Michael Gorelik 17:25.00*
      > 46 Greg Parker 18:02.00*
      > Total Time: 1:24:40 Average: 16:56.00 1-5 Split: 34
      > 2 Caledonia 86 5 8 20 21 32 43 50
      >
      >
      > to this:
      > 1 Okemos|Caledonia 86 5 8 20 21 32
      > 43 50
      >
      >
      > My search pattern is:
      > "(s?) +.*\r\n 2 "
      >
      > But that only finds this:
      > Total Time: 1:24:40 Average: 16:56.00 1-5 Split: 34
      > 2
      >
      > I would expect it to get the first three spaces after Okemos to the
      > space before C in Caledonia.

      Your search pattern contains only one line break, try this in a clip:
      ^!Replace "( +\d+)+(\r\n +\d+ +.+ +\d\d:\d\d\.\d\d\*?)+\r\n.*Total Time.*\r\n +\d+ " >> "|" WRSA

      Alex.
    • Show all 4 messages in this topic