Search found 4 matches

by IanC
08 Oct 2021 05:34
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2165606

Re: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets

If you want to use \r and \n you have to pass option /XSEQ. That should work: Call jrepl "\<extensions\>\r\n.*?\r\n\<\/extensions\>\r\n" "" /XSEQ /M /F "MMT.gpx" /O - Steffen Many thanks, that did it! And if I wanted to loop through every GPX file in a directory?? I've attempted to splice together ...
by IanC
07 Oct 2021 15: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: 2165606

Re: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets

aGerman wrote:
06 Oct 2021 10:30
If you want to use \r and \n you have to pass option /XSEQ.
That should work:

Code: Select all

Call jrepl "\<extensions\>\r\n.*?\r\n\<\/extensions\>\r\n" "" /XSEQ /M /F "MMT.gpx" /O -
Steffen
Many thanks, that did it!
by IanC
06 Oct 2021 06:09
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2165606

Re: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets

I'm struggling to do a JPREL operation on a simple XML (GPX) file. The section I want to delete (complete with line-feeds) is as follows: <extensions> <mmttimezone>+01:00</mmttimezone> </extensions> So what am I doing wrong here? Call jrepl "\<extensions\>\s.*?\s\<\/extensions\>\s" "" /M/f MMT.gpx /...