Jump to content

Search and Replace


killroy
 Share

Recommended Posts

Greetings Ladies and Gentlemen,

I am truly hoping someone will be able to solve my insy winsy, teeny, weeny, problem.

I have a fairly big text document. I would like to open the document

and do a 'Search and Replace' like notepad. 'Find What' -> 'Replace With'.now for the catch!

I want to do it Automatically!! hence the AutoIt Forums :idiot: clever or what

I have tried dabbling a bit with FileOpen, FileWriteLine and StringReplace but I

am having no joy and I would hate to paste what code I do have because it's not

more then a few lines and does nothing but fill the document with empty lines.

If one of you highly intelligent individuals wouldnt mind sharing your knowledge and pointing me

In the right direction, I would be most grateful.

Thanking you very muchly.

Byronious

Link to comment
Share on other sites

Accually it is:

Itsy, Bitsy, Teeny, Weeny (like the song Yellow Polka Dot Bikini) Problem.

but I don't think you know the song at all. :idiot:

Anyway, about your script.

Could you program to open the file and then the keyboard shortcut (CTRL-H) and let it fill in the things you want to replace?

I think that would be the easiest way.

Link to comment
Share on other sites

You know what! Why oh why didn't I think of that. You are a god!

Regarding the song :lol: Singing was never my strong point, then again niether is scripting :D I was thinking of Insy Winsy Spider...... omg! :idiot:

Many thanks for the reply. Any more from other helpful people would be appreciated!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...