Jump to content

[RegEx] Find and Insert text.

Recommended Posts

What has RegEx to do with this?

You are looking for a very definite text, you can use gsar for this:


or FART:


Otherwise you might want to try using SED (much more powerful but not as easy to use), a windows port  is here:


A number of other tools/utilities do exist, but - generally speaking - they won't manage gracefully the CR+LF (the one after the [SourceNames.x86]).



Link to comment
Share on other sites

Posted (edited)

I have to use the "JREPL.bat" tool. All other tools have problems with different text encodings.

This works:

JREPL.BAT "[SourceNames.x86]" "[SourceNames.x86]\r\nNew-Line" /XSEQ /L /f "File.txt" /o -

But i try to do something like this:

JREPL.BAT "(RegEx)[SourceNames.x86]\r\n(RegEx)" "Test-Line" /XSEQ /L /f "File.txt" /o -
Edited by Outbreaker
Link to comment
Share on other sites

I do not understand your question, then, maybe it is a moving one.

You seemingly asked a question about a problem that you already solved, both the question and the solution you found do not need the use of RegEx expression.

Unfortunately I cannot follow you on the "I have to use" and "All other tools".

If you have to use JREPL.BAT, it has a dedicated thread on another forum, ask your questions here:


it is much more likely to find there people familiar with that tool.

RegEx is already - by itself - complex enough, the ways each and every tool implements it may (or may not) be non-standard.

TIme for a distraction:



Link to comment
Share on other sites

25 minutes ago, Outbreaker said:

I now found the RegEx solution for it.

Though it doesn't seem at all like there is a RegEx expression anywhere in that.

Anyway, the only important thing :yes: is that you are happy with your solution.


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
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...