replacing text in the middle of a string

A swapping-ground for Regular Expression syntax

replacing text in the middle of a string

Postby Bixel » Sun Jul 05, 2009 8:56 am

I have a lot of folders with game content in them that need to be copied and overrided in another directory and then imported into the game.

So I have a like 100 folders like this
7ab50e44_95b6074c_4e0100

the desired part than needed to be replaced is between the ""
7ab50e44_"95b6074c_4e"0100

needed the middle part changed to this
79eb2b67_30

the result would be
7ab50e44_79eb2b67_300100

I use bulk rename for more simple stuff like appended or replacing a 0 with a 8 - but this one is eluding me.
Bixel
 
Posts: 2
Joined: Sun Jul 05, 2009 8:36 am

Re: replacing text in the middle of a string

Postby Bixel » Sun Jul 05, 2009 9:40 pm

Ah never mind! Been using the regular expression for so long I didnt even see the replace one!
Bixel
 
Posts: 2
Joined: Sun Jul 05, 2009 8:36 am


Return to Regular Expressions


cron