Search found 6 matches

by Mike D
27 Dec 2016 18:01
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2167719

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

dbenham wrote:Example 1: Store the last word of input.txt in variable lastWord.

Code: Select all

call jrepl \s+ "" /match /f input.txt /rtn lastWord:-1


'\s' should be '\S' (upper case).
by Mike D
06 Sep 2016 19:53
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2167719

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Both links worked for me. You're right. I don't know what happened the first time. I'm sure I copied the URL correctly, because it worked when I pasted it at the Internet Archive. Nevertheless, both sites say 'This documentation is archived and is not being maintained', and have links to the 'Recom...
by Mike D
06 Sep 2016 19:08
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2167719

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

I would have liked to have implemented that feature, but it is problematic. The replace method that is central to the entire utility does not report whether a match was found. It does not even report whether a change was made. The only way I can detect a change is by comparing the before and after ...
by Mike D
20 Aug 2016 06:25
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2167719

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Thanks for the replies. Your test 4 returned [errorlevel=]1 in my environment. It definitely returns 0 on the computer I was using, which is running 32-bit Windows XP. I checked on a computer running 64-bit Windows 10, and on that it returns 1. That behavior is by design (and documented). Strangely ...
by Mike D
18 Aug 2016 20:13
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2167719

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

JREPL V4.5 can return errorlevel=1 when the new text is the same as the original text. This is a problem for me because I want to update the (internal) revision date in various files, and I don't want it to register as a failure just because I've previously updated the file on the same day. Here's s...