Menu

#1 Regular expressions that end in lookaheads

closed-fixed
8
2010-08-07
2010-08-06
No

A regex that ends in a look-ahead (the worst example being $), causes the replacement to be inserted indefinitely.

Discussion

  • Dave Brotherstone

    • assigned_to: nobody --> davegb3
     
  • Dave Brotherstone

    working on it...

     
  • Dave Brotherstone

    Fixed in next release - you can now add an Editor.INCLUDELINEENDINGS flag to pyreplace to include the line endings in the search. Also added an infinite loop check to ensure things don't run forever, in the event of a bad expression.

     
  • Dave Brotherstone

    • status: open --> closed-fixed