Community
    • Login

    selecting text using find with regular expression

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.4k 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.
    • Zs LZ
      Zs L
      last edited by

      Hello!
      I would like to select only part of the found text. The regular expression is: <tag data=“([^”]+)" />, it finds & selects the text correctly, but it selects the entire match not only the submatch (…). How can i do this?
      Thanks

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Zs L
        last edited by

        Hello Zs-L,

        not sure what your final goal is but maybe this is one does it.

        (?=.*)([^"]+)(?=" />)
        

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Zs LZ
          Zs L
          last edited by

          Thank you very much! I have to use the assertions in the regular expression as you did.

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