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

Docs: regex replace in post-processing and document capture groups #1286

Closed
wolfv opened this issue Dec 25, 2024 · 1 comment
Closed

Docs: regex replace in post-processing and document capture groups #1286

wolfv opened this issue Dec 25, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@wolfv
Copy link
Member

wolfv commented Dec 25, 2024

We have the post-processing with regex's. There is a somewhat surprising feature with Rust regex' crate that uses $FOO syntax to expand a named capture group. This should be documented so that others don't fall into this trap :)

E.g. if you want to replace /bla/sys/prefix with $ENV{PREFIX} you need to write $$ENV{PREFIX} otherwise it gets replaced as {PREFIX}.

@wolfv wolfv added the documentation Improvements or additions to documentation label Jan 17, 2025
@wolfv
Copy link
Member Author

wolfv commented Jan 21, 2025

I added some docs for this! :)

@wolfv wolfv closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant