A software needed to replace multiline text

Discussion in 'HTML & Website Design' started by girish.gangadhar, May 16, 2007.

  1. #1
    Hi all,

    I have a script code which I need to add before the </body> tag of every page. I own around 150 pages. Its very difficult to manually add the code myself to the pages. Is there any software that will automate the process giving me the option of where to add a multiline text before a certain word. Editplus and Textpad may not be useful for multiline replacement or addition.
     
    girish.gangadhar, May 16, 2007 IP
  2. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you use a WYSIWYG editor they usually have a find & replace tool. just use this to replace "</body>" with "<script> your script </script> </body>" on all the pages at once
     
    Mr Blonde, May 16, 2007 IP
  3. aussieone

    aussieone Active Member

    Messages:
    249
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    78
    #3
    try agc grep or powergrep for big 'find and replace' projects ;)
    AGC Grep might seem a bit more easy to use, comes with a better GUI.

    http://www.powergrep.com/


    Windows grep Software to Search (and Replace) through Files and Folders on Your PC and Network
    The Most Powerful GREP Tool for Windows

    PowerGREP is a powerful Windows grep tool. Quickly search through large numbers of files on your PC or network, including text and binary files, compressed archives, MS Word documents, Excel spreadsheets and PDF files, etc. Find the information you want with powerful text patterns (regular expressions) specifying the form of what you want, instead of literal text. Search and replace with one or many regular expressions to comprehensively maintain web sites, source code, reports, etc. Extract statistics and knowledge from logs files and large data sets.
     
    aussieone, May 16, 2007 IP
  4. sri

    sri Active Member

    Messages:
    917
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    70
    #4
    sri, May 16, 2007 IP
  5. B.E.W.D

    B.E.W.D Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks I have some problem, I thinks the site of @sri is good for this problem
     
    B.E.W.D, May 16, 2007 IP