Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • M Andre Z EckenrodeM

      Search++ (\W)'(\w) regex replace failure

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      37
      0 Votes
      37 Posts
      1k Views
      M Andre Z EckenrodeM
      @Coises said: Do bad substitutions happen if the document is set as UTF-8, or is it specific to ANSI? I’ve experienced it with both at this point. Have you ever seen a bad replacement where the replacement string did not use a capturing group reference Not that I’ve noticed so far. New test: I used the same list of words, but inserted the number 2 between the second and third letters of all words that consisted of at least three letters, then stepped through using Find ([a-z])\d([a-z]) and Replace \1\2. There are anomalies. Examples include: ac2ademic became adjdemic ad2ministration became a ginistration
    • P

      Remove lines starting by...

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      46 Views
      PeterJonesP
      @Passant-Delarue , Initial guess: turn off “. matches newline”, otherwise your .* will greedily match the whole file.