Community
    • Login

    Regex: Select all the words that doesn't have . in front of

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 1 Posters 820 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.
    • Vasile CarausV
      Vasile Caraus
      last edited by Vasile Caraus

      hello. I want to match all words “html” that doesn’t have . in front of

      for example:

      my-baby.html
      my-babyhtml - this is the kind of links that I want to match

      I try this, but doesn’t work .(?<!)html

      1 Reply Last reply Reply Quote 0
      • Vasile CarausV
        Vasile Caraus
        last edited by Vasile Caraus

        ok, I find an answer: \w+([^.])(?=html)

        but I don’t want to match words with signs like: #"=\ before, such as #html

        only letters before html, such as my-babyhtml

        I try (?<=[^",=#])\w+([^.])(?=html) but this will match everything that contains html

        Help please

        1 Reply Last reply Reply Quote 0
        • Vasile CarausV
          Vasile Caraus
          last edited by

          Got it.

          FIND: \w+([^.#"</ ])(?=html)

          this will find all words html that has only letters before it, such as my-babyhtml

          will not match words like #html or <html or "html

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