Notepad++ Search & Replace with Regular Expressions

6,795

You were close

{span style="display:none"}(.*){/span}
Share:
6,795

Related videos on Youtube

Jeremy
Author by

Jeremy

Updated on September 17, 2022

Comments

  • Jeremy
    Jeremy over 1 year

    I know its simple, but I can't get it to work...

    I have a strings like

    {span style="display:none"}123{/span} and 
    
    {span style="display:none"}456{/span} and 
    
    {span style="display:none"}789{/span}
    

    in a file.

    I want to remove all of these string.

    So, I thought a simple regular expression replace in NotePad++ should be like

    {span style="display:none"}[(.)]{/span}
    

    but, this is not working.

    Thank for your help!