Community
    • Login

    Regex find single quote prefaced by a letter and followed by a letter

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 582 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.
    • John TuckerJ
      John Tucker
      last edited by

      Replace ’ with this # while the ’ is in a word.

      Tried this FIND ([A-z]{1,})’([a-z]{1,}) and this REPLACE \1#\2

      And not sure what I have done wrong. It doesn’t work.
      Any help appreciated.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @John Tucker
        last edited by

        @John-Tucker

        Maybe try:

        Find ([A-Za-z])'(?=[a-z])
        Repl \1#

        1 Reply Last reply Reply Quote 1
        • John TuckerJ
          John Tucker
          last edited by

          Thanks, that worked a treat!

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