{% extends 'base.html' %} {% from '_helpers.html' import render_field, render_checkbox_field, render_button %} {% block content %}

{{ _('This tool will extract text data from all of the watch history.') }}

{{ render_field(extract_form.extract_regex) }} {{ _('A RegEx is a pattern that identifies exactly which part inside of the text that you want to extract.')|safe }}

{{ _('For example, to extract only the numbers from text') }} ‐
{{ _('Raw text') }}: Temperature 5.5°C in Sydney
{{ _('RegEx to extract:') }} Temperature ([0-9\.]+)

{{ _('Be sure to test your RegEx here.') }}

{{ _('Each RegEx group bracket') }} () {{ _('will be in its own column, the first column value is always the date.') }}

{{ render_button(extract_form.extract_submit_button) }}
{% endblock %}