From a292c4c437d631d7eae3a0adfd98adbefd52c2eb Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 12 Jun 2021 14:57:29 +0200 Subject: [PATCH] Add example for ">>" arrow heads --- CONFIG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CONFIG.md b/CONFIG.md index 1793ddc..f2710e1 100644 --- a/CONFIG.md +++ b/CONFIG.md @@ -430,3 +430,14 @@ For this task, the name arrows can be used. __pycache__ -name-> ! .*\.md -name-re-> ! ``` + +### Example: Clean up names + +You want to convert all paths into lowercase and replace spaces with underscores +before applying any rules. This can be achieved using the `>>` arrow heads. + +``` +(.*) -re->> "{g1.lower().replace(' ', '_')}" + + +```