Skip to content

Instantly share code, notes, and snippets.

@niikoo
Created July 16, 2021 14:03
Show Gist options
  • Save niikoo/f94ddd4da7dae3a2b256ed174e2b4b94 to your computer and use it in GitHub Desktop.
Save niikoo/f94ddd4da7dae3a2b256ed174e2b4b94 to your computer and use it in GitHub Desktop.
WEBVTT Decoder 1.1
Find_/_Replace({'option':'Simple string','string':'WEBVTT'},'',true,false,false,false)
Find_/_Replace({'option':'Regex','string':'([0-9]{2}\\:[0-9]{2}(\\:[0-9]{2}){0,1}\\.[0-9]{3}\\s\\-\\-\\>\\s[0-9]{2}\\:[0-9]{2}(\\:[0-9]{2}){0,1}\\.[0-9]{3,4})'},'',true,false,false,false)
Regular_expression('User defined','^(.{0,})?(?![0-9]{2}\\:[0-9]{2}\\:[0-9]{2}\\.[0-9]{3}\\s\\-\\-\\>\\s[0-9]{2}\\:[0-9]{2}\\:[0-9]{2}\\.[0-9]{3}){1(.{0,}?)$',true,true,true,false,false,false,'List capture groups'/disabled)
Find_/_Replace({'option':'Extended (\\n, \\t, \\x...)','string':'\\n\\n\\n'},'\\n\\n',true,false,true,false)
Find_/_Replace({'option':'Extended (\\n, \\t, \\x...)','string':'\\n\\n'},'\\n',true,false,true,false)
Find_/_Replace({'option':'Regex','string':'(\\"{0,1}\\[\\<.+?\\,\\s[a-zA-Z]{0,20}\\])'},'',true,false,true,false)
Find_/_Replace({'option':'Regex','string':'([,a-zA-Z]{1}\\s{0,}?)(\\r{0,1})\\n'},'$1 ',true,false,true,false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment