ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

replace text blocks

(1/2) > >>

kalos:
hello

can you tell me please a program that will batch replace text blocks in multiple files?

I know there are numerous that replace text, but I don;t know any for whole blocks of text (multi-line text, paragraph text)

also it should work with other than english characters


thanks

f0dder:
What are the restrictions on the text blocks you want to replace? What kind of input format (raw .txt files, XML, ...) , what are the precise criteria of the text you want to replace, etc.

Probably some unicode-aware regular-expression text replacer can do the job.

kalos:
I want to delete eg this text:

--- ---</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>

<hr class="hidden" />
<table id="footer" width="100%">
<tr>
<td>&copy;
the files are html (that can obviously be considered as txt)

yes, a regex replacer would do that, but it's hard for me to turn the whole text block into single-line regex text, I just need to copy-paste the text block to the application :D


edit by jgpaiva: fixed code tag

f0dder:
Ah, so it's static blocks you want to replace? 100% exact, not even variety in ChArEcTEr CaSe?

kalos:
yeap, exactly

I found "ALIAS Find and Replace" that supposedly does the job, but somehow it doesn't install on my pc

Navigation

[0] Message Index

[#] Next page

Go to full version