;csv: correction, that field equality trick was just a fluke

This commit is contained in:
Simon Michael 2020-05-09 15:37:11 -07:00
parent e5ed001ce8
commit 3919f0945a

View File

@ -893,17 +893,3 @@ use to parse input files. When all files have been read successfully,
the transactions are passed as input to whichever hledger command the
user specified.
## Regular expression tricks
### Testing that two fields have the same value
```csv
2020-01-01,different,3,4,5,6,7,8,9
2020-01-01,same ,3,4,5,6,7,7,9
```
```rules
fields date,description,_,amount,_,_
# skip first 6 fields, then match if the next two fields are the same
if ^([^,]*,){6}([^,]*),\7
comment fields 7 and 8 have the same value
```