Need help on batch (find/replace)

Tool for Search and Replace across multiple files.
illusions
Posts: 2
Joined: Wed Jan 08, 2014 4:27 pm

Need help on batch (find/replace)

Post by illusions »

Hi,

I have 1 text files.
I cannot seem to figure out how to do batch find / replace.

1. I click the tab "Input file" enter location of text.txt
2. click tab batch commands
3. click batch editor
4. click load ... my textcrawler script.txc
5. click replace ... nothing happen "no match found in this file" but there should be 2 match.


Please help.




my textcrawler batch script

Code: Select all

//TextCrawler Script File 1.0


!Find
http://i1367.photobucket.com/albums/r781/anillusions/2CAST_zps24f30e11.gif
!Replace
https://whatimg.com/i/nsSA11.gif
!Options

!Find
http://i1367.photobucket.com/albums/r781/anillusions/mediainfo_zps5f4b5359.png
!Replace
https://whatimg.com/i/MhnDAx.gif
!Options

!End
User avatar
DigitalVolcano
Site Admin
Posts: 1866
Joined: Thu Jun 09, 2011 10:04 am

Re: Need help on batch (find/replace)

Post by DigitalVolcano »

It seems to work for me. You might want to try it with the regular expression flag turned off in the script though:

Code: Select all

//TextCrawler Script File 1.0

!Find
http://i1367.photobucket.com/albums/r781/anillusions/2CAST_zps24f30e11.gif
!Replace
https://whatimg.com/i/nsSA11.gif
!Options
Non-RegEx
!Comment


!Find
http://i1367.photobucket.com/albums/r781/anillusions/mediainfo_zps5f4b5359.png
!Replace
https://whatimg.com/i/MhnDAx.gif
!Options
Non-RegEx
!Comment


!End
Do you get matches in the file if you just enter the search string in the standard 'Find' box (not batch) ?
illusions
Posts: 2
Joined: Wed Jan 08, 2014 4:27 pm

Re: Need help on batch (find/replace)

Post by illusions »

Thank you turning the expression flag off did the job : )
Post Reply