Community
    • Login

    Wildcard in replace field

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    24 Posts 7 Posters 8.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PeterJonesP
      PeterJones @Thomas 2020
      last edited by

      @Pan-Jan ,

      Your regex does not provide all the same groups (and thus features) of the regex developed through this thread, and thus likely misses some of the functionality needed

      1 Reply Last reply Reply Quote 0
      • Thomas 2020T
        Thomas 2020
        last edited by Thomas 2020

        @PeterJones said in Wildcard in replace field:

        and thus likely misses some of the functionality needed

        show on the example in this thread that it doesn’t work

        (\d{1,2}:\d\d):(?=\d\d)
        but this one has disadvantages, and he will also mark it here
        126:23:45
        126:23:450
        12:23:45:67

        it will be correct

        (^| )(\d{1,2}:\d\d):(?=\d\d( |$))

        1 Reply Last reply Reply Quote 0
        • Thomas 2020T
          Thomas 2020
          last edited by Thomas 2020

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Thomas 2020T
            Thomas 2020
            last edited by Thomas 2020

            (^| )(\d{1,2}:\d\d):(?=\d\d([ ,'!\.\?"”\)]|$))

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors