Search found 5 matches

by sochuffed
22 Dec 2016 22:03
Forum: DOS Batch Forum
Topic: JREPL.BAT help
Replies: 6
Views: 5165

Re: JREPL.BAT help

I've probably confused you seeing as I'm writing two separate files for two separate find and replace jobs. But it's fine! I sorted it out myself by writing in some extra lines. This is what was messing me up: \[[A-z]{1,100}\]?. Remove the ?. and it remained utf-8, so I just had to find another way ...
by sochuffed
22 Dec 2016 20:37
Forum: DOS Batch Forum
Topic: JREPL.BAT help
Replies: 6
Views: 5165

Re: JREPL.BAT help

Here's what I have in my .bat: @echo off setlocal enabledelayedexpansion :: Confirm pandoc is installed, or check for a dropin "pandoc.exe WHERE pandoc >nul 2>nul IF %ERRORLEVEL% NEQ 0 ( IF EXIST pandoc.exe ( set pandoc=pandoc.exe ) ELSE ( echo ERROR: Pandoc is not installed. echo - Installatio...
by sochuffed
22 Dec 2016 16:48
Forum: DOS Batch Forum
Topic: JREPL.BAT help
Replies: 6
Views: 5165

Re: JREPL.BAT help

You, sir, are a life saver. I'd been blundering around trying to write this stuff for about 2 weeks and you've helped me finish it off in essentially 2 days. And I appreciate that you explain everything as you go - helps me make the tweaks I need to get it working exactly how I want it to. So thank ...
by sochuffed
21 Dec 2016 22:45
Forum: DOS Batch Forum
Topic: JREPL.BAT help
Replies: 6
Views: 5165

Re: JREPL.BAT help

Okay so for some reason the above works now, aside from '_[A-z].{1,300}'. If this were run in notepad++ '. match new line' would be ticked so the search can find everything that runs over a line break, not just individual lines. Currently this is removing any individual line starting with _ up to 30...
by sochuffed
21 Dec 2016 18:46
Forum: DOS Batch Forum
Topic: JREPL.BAT help
Replies: 6
Views: 5165

JREPL.BAT help

Hey guys, So I'm using jrepl to run a find and replace on a batch of files using regular expression. This is what I have: @echo off echo begin find and replace for %%F in (*.txt) do ( call jrepl "\r\n|STUDENT: [^\r\n]{1,200}|_[A-z].{1,300}|-{2,2000}"^ "\r\n\r\n|STUDENT:||" /m /x ...