Jump to content

Search and replace, but.... NOT

- - - - -

  • Please log in to reply
5 replies to this topic

#1
69pede69

69pede69

    Newbie

  • Members
  • Pip
  • 3 posts
Hi all... happy holidays :)

Does anyone know if the following already exist or if it would take long to code?

I need a search and replace program that has a "Find" field and under it has a
"Replace" one line down field.

In other words, I need a program that will find a complete line of text (In an XML file)
then insert a complete line of text directly underneath it.

In other words II... find a line of text, create a blank line under it and insert whatever
is in the replace field into it.

Thanks for your time,
John

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
This should be pretty easy to do, assuming you're comfortable with file handling.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
69pede69

69pede69

    Newbie

  • Members
  • Pip
  • 3 posts
Well... obviously I am a newbie, what do you think would be the best language to do this in? I will have to learn enough of it to complete this project.
Any chance of finding a pre-made code sniplit for the basic search and replace utility? And I will attempt to Mod it from There.

Thanks much,
John

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It shouldn't really make a difference. What language(s) are you familiar with?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
I'd recommend Python. Is that DOM (for XML) module already included, is really easy to learn and very powerful. Or you could do it with regular expressions, module for it also comes with Python.

On the other hand, if you decide for example C/C++, you will gain a deeper knowledge how files work.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.

#6
69pede69

69pede69

    Newbie

  • Members
  • Pip
  • 3 posts
Well... I really don't care that much about speed, rather, easy to code. Heck something visual like VB would be even better.

Thanks
J :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users