Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Regex Capture groups #8

Open
rapatel0 opened this issue Mar 8, 2022 · 0 comments
Open

[Feature Request] Regex Capture groups #8

rapatel0 opened this issue Mar 8, 2022 · 0 comments

Comments

@rapatel0
Copy link

@rapatel0 rapatel0 commented Mar 8, 2022

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:
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant