top of page
Search

Notepad++ : Removing a field between characters with Regex

  • Writer: Krishnaraj Rajagopal
    Krishnaraj Rajagopal
  • Feb 13, 2018
  • 1 min read

Use the following search string in the find and replace window within Notepad++ to remove any string between specific characters. Ensure to check Regex box when performing this find and replace.

(?<=start-text)(.*)(?=end-text)

start-text - Starting text of the field

end-text - Ending text of the field

The following example will remove text between UUID and immediate brackets (}).

(?<=UUID)(.*)(?=\})

Note: The \ before the brackets is an escape character to differentiate text characters from Regex characters.

Recent Posts

See All
Neo4j: Get label-relationship count

Run the following cypher query to get the label to relationship count match (n)-[r]-(m) return labels(n),count(r) as rel_count, labels(m)...

 
 
 
Neo4j: Get label count

Run the following cypher query to get the label counts call db.labels() yield label call apoc.cypher.run("match (:`"+label+"`) return...

 
 
 

コメント


©2017 by Krishna's Tech Notes. Proudly created with Wix.com

bottom of page