Topic
Summary
- How to filter by text which matches a number for all uncompleted tasks?
Test
Summary
- dataview: v0.5.46
Input
Summary
dictionary files
- Location: “100_Project/02_dataview/Q75_tasksRegExp/Q75_test_data”
folder: 03
- filename :
dic_19700301
---
Date: 1970-03-01
---
#Project/P03
### some tasks
- [ ] 0
- [ ] -10
- [ ] 100
- [ ] 1000.01
### other tasks
- [ ] 123456 Do
- [ ] Do 123456
- [x] 123456
- [X] Do stuff
DQL10_use_fTasks_and_display_uncompleted_tasks_where_text_is_a_number
Summary
Main DQL
Code Name | Data type | Group By | Purposes | Remark |
---|---|---|---|---|
DQL10 _use_fTasks _and _display_uncompleted_tasks _where _text_is_a_number |
flattened file.tasks | no | 1.To filter by uncompleted task 2.To filter by text which matches a number 3.To display the result as a taskList [with the desired structure] |
Code DQL10_use_fTasks_and_display_uncompleted_tasks_where_text_is_a_number
Summary_code
title: DQL10_use_fTasks_and_display_uncompleted_tasks_where_text_is_a_number =>1.To filter by uncompleted task 2.To filter by text which matches a number 3.To display the result as a taskList [with the desired structure]
collapse: close
icon:
color:
```dataview
TASK
FROM "100_Project/02_dataview/Q75_tasksRegExp/Q75_test_data"
WHERE !completed
WHERE regexmatch("^-?[0-9]+(\.[0-9]+)?$", text)
```