Jump to content
Sign in to follow this  
ebud

Find and Replace in config

Recommended Posts

I've been trying to find a tool that will "easily" allow me to find a word and replace it with multiple words randomly. Like the replace tool in wrptool. I've downloaded and tested about 6 replacement tools but have no idea how regular expressions work and don't have the time or energy to learn.

What I want to do is to take a word like face44 and replace it with face44, face45, face46 etc but randomly. Or a pool of words liek face44, face45, face46 etc and replace them again with face44, face45, etc.

Any idea how I could do that? Or a simple tool to do that in that doesn't need a programming degree to figure out?

I'd also love to find a way that I could replace for example the names in the config such as "Jiri Cinybulk" or any other proper name and have a pool of replacement names and replace them at random. I know it can be done as the are capped and between quotes, but I have no clue as how to do it. I looked through the regular expression tutorials and have an idea on how to find all the types of expressions I'm need to randomly replace, but not how to replace them. The finding is easy, just the replacement is out of my grasp.

THis would save me a good chuck of time.

Any ideas?

Share this post


Link to post
Share on other sites

the one i use is called ultra edit. i change the ids in mission sqm, nice usable interface, for me. credit to shadowze.

here

Share this post


Link to post
Share on other sites

I've had ultraedit for ages and use it all the time to edit missions, but can it replace one word with 5-6 other words at the same time and replace them randomly? I've never even looked at it to see if it could do that. I'm at work so I can't check.

Share this post


Link to post
Share on other sites

as for as i am aware no programme can do that, but you could write a little prog, that would do it i am sure.but you prolly already knew that smile_o.gif. sry for none help, i shud readposts more clearly.

Share this post


Link to post
Share on other sites

haha if I could write one I'd sell the sucker, lol. I already finished by hand what I was needing to do, but I would have thought there might be something like this. All the specific find and replace tools out there give you a million ways to find the info, but I'm finding it hard to find where they let you replace that info other than the typical way.

Share this post


Link to post
Share on other sites

Thanks for the info. I had already downloaded a trial versionof Editpad and about 7-8 others just like it, but to use them for what I need, I need to fgiure out regular expressions, and I still from looking through them, don't see where the output replcement text can be randomized. I'm sure it's in there, but it;s been almost 20 years since I actually tried to program anything, and that was back in highschool. There's a reason I haven't tried to code or script since then smile_o.gif

Thanks for the info and help though, I do appreciate it.

Share this post


Link to post
Share on other sites

I used the old TRS80s with the cassette tapes thank you very much wink_o.gif C64 was after my time, lol.

Share this post


Link to post
Share on other sites

Ebud,

Been seeing your post's around the fourms. Whatcha got up your sleeve? What ever it is I am looking forward to it. Your work is always top notch.

Share this post


Link to post
Share on other sites

as for random replacement ... i have no idea crazy_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×