Hi.
I'm using UltraEdit Text/Hex Editor (x64) Version 25.20.0.88.
I'm trying to use the following search/replace with Regular Expression (Perl):
Search (<video muted="1" preload="auto".*?src=")(.*?)(\.mp4.*?</video>)
Replace <img src="\2.jpg">
It's because I want to convert this:
<video muted="1" preload="auto" style="" class="_ox1 _21y0" data-video-width="261" data-video-height="465" id="u_37_3" src="video-1572541365.mp4" width="261" height="465"></video>
into this:
<img src="video-1572541365.jpg">
It's OK to some parts of the file, but, suddenly, UltraEdit starts to behave unpredictable, selecting fully wrong text.
I don't know if it's an error from my expression or if it's some bug of the program.
If the HTML file is small and/or has short lines, expression is found all the time.
But if the file has long lines with too many columns (characters), the problem shows up.
To provide a sample for your analysis, I put two files attached.
There are some personal dialogues on file #1.
If I remove those dialogues, the problem won't show up anymore (file #2).
I use this to remove personal dialogues:
Search (<span class="_3oh- _58nk">)(.*?)(</span>)
Replace \1\3
To remove things like this:
<span class="_3oh- _58nk">Some personal text</span>
becomes
<span class="_3oh- _58nk"></span>
I'd request to remove the attached file #1 after your analysis.
So, I'd like to know if I'm doing wrong or if it's actually a program bug.
Thank you.
Edited:
Because of some mysterious cause, file #2 started to show the same problem.
For this reason, I myself had removed file #1.
I'm using UltraEdit Text/Hex Editor (x64) Version 25.20.0.88.
I'm trying to use the following search/replace with Regular Expression (Perl):
Search (<video muted="1" preload="auto".*?src=")(.*?)(\.mp4.*?</video>)
Replace <img src="\2.jpg">
It's because I want to convert this:
<video muted="1" preload="auto" style="" class="_ox1 _21y0" data-video-width="261" data-video-height="465" id="u_37_3" src="video-1572541365.mp4" width="261" height="465"></video>
into this:
<img src="video-1572541365.jpg">
It's OK to some parts of the file, but, suddenly, UltraEdit starts to behave unpredictable, selecting fully wrong text.
I don't know if it's an error from my expression or if it's some bug of the program.
If the HTML file is small and/or has short lines, expression is found all the time.
But if the file has long lines with too many columns (characters), the problem shows up.
To provide a sample for your analysis, I put two files attached.
There are some personal dialogues on file #1.
If I remove those dialogues, the problem won't show up anymore (file #2).
I use this to remove personal dialogues:
Search (<span class="_3oh- _58nk">)(.*?)(</span>)
Replace \1\3
To remove things like this:
<span class="_3oh- _58nk">Some personal text</span>
becomes
<span class="_3oh- _58nk"></span>
I'd request to remove the attached file #1 after your analysis.
So, I'd like to know if I'm doing wrong or if it's actually a program bug.
Thank you.
Edited:
Because of some mysterious cause, file #2 started to show the same problem.
For this reason, I myself had removed file #1.
- sample #2 - Teste de bug (sem nomes e sem imagem).zip (30.83 KiB) 0