-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using Regex to replace #2864
Comments
You did it by using "Replace" (Ctrl+H) and the "Replace all" button therein and not using the "Multiple replace" (Ctrl+Alt+M) tool, didn't you? It seems that in this mode the cursor is not always put to the right of what was just inserted; in particular this happens with zero-width matches like yours. Therefore it always starts again at the beginning of the line and adds your tag until SE ends (by using the task manager or probably until your system runs out of RAM). But it also happens with non-zero-width matches. My first guess was that it actually just doesn't change its index (the cursor position) in the given string. But during testing I also noticed another odd thing with replace: It sometimes does it more often than it should. If I search for |
Good to know. And Yes, I did understand some of it. 😅 |
I've tried to fix the issue in latest beta: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.5.6/SubtitleEditBeta.zip |
Beta updated again with minor fix... |
Works well. |
Thx. :) |
Beta updated with hopefully improved functionality regarding translator mode: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.5.6/SubtitleEditBeta.zip |
One problem. |
@OmrSi: Could you explain in more detail? |
I'm at line 16, I press replace all, and the program replaces everything from line 16 to the end, then it asks if it want to start from the beginning of the document, if I press yes, it replace everything from line 1 to the end, so lines 16 to end are replaced again. |
I've tried to fix the issue yet again: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.5.6/SubtitleEditBeta.zip |
All Good Now. 😄 |
when i try using regex to add a tag to the start of every line, i replace every "^" with "{\fs50}", but the program stops and i have to close it from task manager
The text was updated successfully, but these errors were encountered: