• Login
Community
  • Login

function Replace (ctrl + h)

Scheduled Pinned Locked Moved General Discussion
3 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ávid Brňák
    last edited by Dec 21, 2017, 12:28 PM

    Please tip,

    I have more than 1200 html files. I need to replace the text in them. But most likely function Replace has a limited number of characters.
    How do I solve the problem? Thank you!

    An example of the part I need to replace:

    		</div>
    <div class="searchControlContainer">
    	<input type="hidden" target='_new'
    	       name="p"
    	       value="par"/>
    	        <input type="hidden" target='_new'
               name="r"
               value="occ"/>
                <input class="searchButton" type="submit" value=""/ target='_new'>
    </div>
    <div class="searchControlButtons">
        <span class="searchIcon menuButton" target='_new'><span class="icon"></span></span>
        <span class="closeIcon menuButton" target='_new'><span class="icon"></span></span>
    </div>
    	<div class="suggestions" target='_new'></div>
    
    		
    		<li id="menuPublications" class="chrome menuButton script-ROMAN dir-ltr" role="menuitem" aria-label="" lang="sk" data-lang="V" dir="ltr">
                <a href=""><span class="icon"></span><span
                            class="label"></span></a>
            </li>
    
    						
    					                <li id="menuSynchronizeControls">
                    <ul>
                        <li id="menuSynchronize" class="chrome menuButton tbSync" role="menuitem"
                            aria-label="synchronizovať">
                            <a id="linkSynchronize" href="" rel="nofollow">
                                <span class="icon"></span> <span class="label"></span> </a>
                        </li>
                        
                    </ul>
                </li>
    		            <li id="menuSearchHitNext"
                class="chrome menuButton iconOnly menuRight Vscript-ROMAN dir-ltr" lang="sk" data-lang="V" dir="ltr">
                <a href="#"><span class="icon"></span></a></li>
        </ul>
    </div>
    
    
    
    	<div id="publicationNavigation"
     class="chrome lang-V script-ROMAN dir-ltr" lang="sk" data-lang="V" dir="ltr">
    <div class="secondaryNavToggle"><span class="icon"></span></div>
    
    <div class="pubNavTitle">
        <div class="chrome lang-V script-ROMAN" lang="sk" data-lang="V">
    	<ul>
    
    		
    	</ul>
        </div>
    </div>]
    
    S 1 Reply Last reply Dec 21, 2017, 12:56 PM Reply Quote 1
    • S
      Scott Sumner @Dávid Brňák
      last edited by Dec 21, 2017, 12:56 PM

      @Dávid-Brňák

      Find-what and Replace-with zones are limited to 2046 characters. Not much can be done to work around that.

      S 1 Reply Last reply Dec 21, 2017, 1:37 PM Reply Quote 1
      • S
        Scott Sumner @Scott Sumner
        last edited by Dec 21, 2017, 1:37 PM

        @Scott-Sumner

        …and an additional complication is that it is not easy to get text with line-endings in it (such as you might try to do with a copy-and-paste operation) into the Replace-with zone.

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