Open rapatel0 opened 2 years ago
Cross post for the https://forum.obsidian.md/t/regex-capture-groups-for-query/33627
It would be nice to enable regex capture groups to subselect the text that is returned from a query.
Query
path:(Operations/Calendar/Daily/2022/03/2022-03-07) /Summary of topics discussed/
Example:
Ideally, “Summary of topics discussed” could be removed from the query results and only the remaining text would be returned by the query
Proposed solution Regex Capture groups.
Example Query
path:(Operations/Calendar/Daily/2022/03/2022-03-07) /Summary of topics discussed((.|\n)*)-/
This slight modification would match only the text in the capture group.
Cross post for the https://forum.obsidian.md/t/regex-capture-groups-for-query/33627
It would be nice to enable regex capture groups to subselect the text that is returned from a query.
Query
Example:![image](https://user-images.githubusercontent.com/18704704/157159767-9ddafe73-0b20-467e-8e74-85928218867f.png)
Ideally, “Summary of topics discussed” could be removed from the query results and only the remaining text would be returned by the query
Proposed solution Regex Capture groups.
Example Query
This slight modification would match only the text in the capture group.