• Login
Community
  • Login

Can one use Boolean "*" in the REPLACE function - Need to convert HTML to text - delete all <*>

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 1.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.
  • D
    D.J. Gibson
    last edited by Sep 27, 2017, 4:12 AM

    Can one use Boolean "" in the REPLACE function - Need to convert HTML to text - delete all <>

    M 1 Reply Last reply Sep 27, 2017, 12:01 PM Reply Quote 0
    • M
      Meta Chuh moderator @D.J. Gibson
      last edited by Sep 27, 2017, 12:01 PM

      @D.J.-Gibson
      yes, you can do this by using regular expressions in the replace panel of np++

      here is an example:

      original data:

      <title>test me</title>
      <a href="https://notepad-plus-plus.org">
      	https://notepad-plus-plus.org
      </a>
      

      activate search mode: regular expression:

      find what:
      <(.*?)>
      
      replace with: (leave this line empty)
      
      

      result:

      test me
      
      	https://notepad-plus-plus.org
      
      1 Reply Last reply Reply Quote 1
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors