• Login
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 596 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.
  • J
    John Tucker
    last edited by Mar 21, 2019, 5:05 PM

    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.

    A 1 Reply Last reply Mar 21, 2019, 5:31 PM Reply Quote 0
    • A
      Alan Kilborn @John Tucker
      last edited by Mar 21, 2019, 5:31 PM

      @John-Tucker

      Maybe try:

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

      1 Reply Last reply Reply Quote 1
      • J
        John Tucker
        last edited by Mar 21, 2019, 5:55 PM

        Thanks, that worked a treat!

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