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 806 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          John Tucker
          last edited by

          Thanks, that worked a treat!

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors