1

I have an html file with subtitles and their position on screen.

Here is a sample of the data:

<p begin="00:00:01.909" end="00:00:04.118" tts:origin="12.500% 84.667%">
  <span><span>Housewives of Beverly Hills"...<style tts:backgroundColor="#000000FF" tts:fontSize="18px" tts:fontStyle="italic"/> </span>
  <style tts:backgroundColor="#000000FF" tts:fontSize="18px"/></span>
</p>
<p begin="00:00:04.196" end="00:00:05.745" tts:origin="10.000% 84.667%">
  <span>- My husband has an RV.
  <style tts:backgroundColor="#000000FF" tts:fontSize="18px"/></span>
</p>
<p begin="00:00:05.822" end="00:00:07.413" tts:origin="10.000% 79.333%">
  <span>I think we should do
  <style tts:backgroundColor="#000000FF" tts:fontSize="18px"/></span>
</p>

I would like to find all values under "15.000%" in Notepad++ How can I do it?

Here you'll find the whole file content in case you need it to inspect.

Julio
  • 5,208
  • 1
  • 13
  • 42
  • Do you just want to find the value, or the element containing that value? – jsheeran May 01 '19 at 07:57
  • Just the element containing that value. Thanks – Hakunamatata67 May 01 '19 at 08:07
  • 1
    Please, add some real code instead of a screenshort. So we can better test the regexes. – Julio May 01 '19 at 10:19
  • Possible duplicate of [Learning Regular Expressions](https://stackoverflow.com/questions/4736/learning-regular-expressions) – Toto May 01 '19 at 11:36
  • What exactly must be selected? Whole `

    ` tags? Just the opening `

    ` tag? Perhaps just the subtitle text? Please, show us the way :-)

    – Julio May 01 '19 at 18:55
  • I just want to highlight all numbers lower than 15.000 in the text. These lines will show all subtitles lines where I need to modify the positions. – Hakunamatata67 May 01 '19 at 19:10

1 Answers1

0

You may try searching on the following regex pattern:

(?:1[0-4]|[0-9])(?:\.\d+)?%

Demo

Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360