Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 1.43 KB

File metadata and controls

50 lines (45 loc) · 1.43 KB

Track Text using Regular Expression

Important!!

  1. Use single quotes to wrap the regular expression, or use double quotes with all back slashes (escape characters) duplicated.
  2. You can make your own expression, or find a suitable one from website like regex101.
  3. Use a named group "(?<value>XXXXXX)" in your expression if you need values be retrieved from text.

Count Occurencies (No Value)

Occurencies of Email

Regex for searching simple emails

searchType: text
searchTarget: '.+\@.+\..+'
folder: diary
startDate: 2021-01-01
endDate: 2021-01-31
line:
    title: Email Occurencies
    yAxisLabel: Count
    lineColor: yellow
searchType: text
searchTarget: '.+\@.+\..+'
folder: diary
startDate: 2021-01-01
endDate: 2021-01-31
summary:
    template: "Total number of emails found: {{sum}}"
    style: "font-size:20px;color:red;margin-left: 50px;margin-top:00px;"

Count Values

Weightlifting Tracker

Track text in format "weightlifting: 10". Regex for searching value-attached texts

searchType: text
searchTarget: 'weightlifting: (?<value>[\-]?[0-9]+[\.][0-9]+|[\-]?[0-9]+)'
folder: diary
startDate: 2021-01-01
endDate: 2021-01-31
line:
    title: Weight Lifting
    yAxisLabel: Count
    lineColor: yellow

Please also check those search targets in markdown files under folder 'diary'.