Advanced Find and Replace

Discussion in 'HTML & Website Design' started by Matt18, May 25, 2011.

  1. #1
    Hi

    We all know how find and replace works in Dreamweaver. You enter let's say X into find and Y into replace, then you select where to do the operation, for example certaing folder, then you click replace all.

    What I have to do is to do that same operation for over 200 entries. I have a list and now I would need dreamweaver or any other program to go over that list and find string from the first column and replace it with string from the second column. Do you maybe know of any program that can do that?

    Thanks alot!
     
    Matt18, May 25, 2011 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    Kerosene, May 25, 2011 IP
  3. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for your reply.

    I have a bunch of .php files while list is in xlsx and can be converted. Any other programs maybe?
     
    Matt18, May 25, 2011 IP
  4. niks00789

    niks00789 Well-Known Member

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #4
    I couldnt get your explanation properly... (maybe an example would help)
    But you can surely use "Notepad++" to perform such operations!
    But you might need to spend sometime on learning how to find and replace entries using wildcards and regular expressions.

    Another alternative may be, using php
    Storing the data in a text file
    using preg_match_all to find all match entries and then replace them according to your conditions.

    I would go with the first.
     
    niks00789, May 27, 2011 IP
  5. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you both. I hired someone to do it manually as I needed it done fast.
     
    Matt18, May 27, 2011 IP