Search found 32 matches

by Gamer95
12 Oct 2015 11:52
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Don't remove last line?

Excellent! Thanks guys!! :D
by Gamer95
12 Oct 2015 08:59
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Don't remove last line?

I'm sorry but i don't know how to do this. :oops:
by Gamer95
12 Oct 2015 06:31
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Don't remove last line?

He guys! It's me again I'm editing a .srt file in this format: 1 < number 00:00:05,143 --> 00:00:06,676 < display text time you brought back <text from that island? <text < empty line Sometimes in an .srt file they forget to add a empty line in the last line of the file so it becomes like this: 1 < ...
by Gamer95
10 Oct 2015 08:57
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Regexp beginning of line?

Thanks guys, works great! :D
BTW: Should have been mentioned that the code is JScript when it was posted in a Batch forum... :wink:

You're right! :oops:
by Gamer95
10 Oct 2015 08:48
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Multiple Lines...

Thanks guys! :D
by Gamer95
09 Oct 2015 10:31
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Regexp beginning of line?

Hello i have a question and i hope someone can help me. So my string is: BRIAN: here is some text here is some text BRIAN: I'm looking for the regexp string to only remove ìf the line begins with BRIAN: The BRIAN: word is always different so i need to use [A-Z]. Currently i got this: str = str.repla...
by Gamer95
09 Oct 2015 04:53
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Multiple Lines...

This is a .bat file but the regex is javascript.
by Gamer95
08 Oct 2015 11:19
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Multiple Lines...

Hello, I got this code and i'm looking for a way to split the code on multiple lines because it's easier to read: @set @a=0 /* @CScript //nologo //E:JScript "%~F0" < "%~F1" > "hello.txt" @goto :EOF */ var fileContents = WScript.StdIn.ReadAll(), search = /(\d+\r\n)(.+\r\...
by Gamer95
05 Oct 2015 08:36
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

Amazing penpen! That's it, Thank you!! I want to thank everybody who helped me in this thread, not only for your time but also for your patience and guidance!! Next time when i create a thread i will explain everything i'm looking for so people don't have to rewrite the script. Again thank you all, ...
by Gamer95
05 Oct 2015 03:14
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

Thank you for your time and help penpen! But i think i need to explain what i'm looking for better. So what i'm looking for is this: 1. Drop a .srt file on the batch and then process it <- Done 2. Remove any lines containing a certain word and edit lines accordingly <- Done 3. Replace " ."...
by Gamer95
04 Oct 2015 03:38
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

Someone?
by Gamer95
02 Oct 2015 01:43
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

I'm very sorry that it's all so confusing! In all the previous posts i was trying to give examples of what i was looking for. I was looking online for a lot of samples how to use the replace function. var res = str.replace(/blue/g, "red"); This string above came from: http://www.w3schools....
by Gamer95
01 Oct 2015 09:12
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

var str = "Mr Blue has a blue house and a blue car"; var res = str.replace(/blue/g, "red"); I'm really sorry, that was not suppose to be in there. I've been trying to get the replace function to work and this was a sample from a different site. I forgot to remove it. @set @a=0 /...
by Gamer95
01 Oct 2015 06:45
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

if you describe the entire task with all the features that you need, and provide a sample file that can be downloaded to test with - I'm pretty sure someone will have a look and give you code to do it. You're right foxidrive. I will try to describe what i'm looking for. I'm trying to edit a .srt fi...
by Gamer95
01 Oct 2015 04:01
Forum: DOS Batch Forum
Topic: Edit subtitle with batch?
Replies: 53
Views: 31653

Re: Edit subtitle with batch?

Can someone please help me with this? I can't get the replace function to work. @set @a=0 /* @echo off if NOT %~x1 == .txt goto :EOF @CScript //nologo //E:JScript "%~F0" < "%~F1" > "%~DPN1_no_world.txt" @goto :EOF */ var str = "Mr Blue has a blue house and a blue c...