Add example for ">>" arrow heads

This commit is contained in:
Joscha 2021-06-12 14:57:29 +02:00
parent bc65ea7ab6
commit a292c4c437

View File

@ -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(' ', '_')}"
<other rules go here>
```