Skip to content

Commit

Permalink
Documented some regex tips from the discussion here: johnbeard#18
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jun 11, 2020
1 parent a403e1b commit 157e23c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ And you want to ignore them. You can add the following filters:
regex: 'Pad 2 of C4'
```

Important note: this will create a file named *kiplot_errors.filter* in the output directory.
If you need to match text from two different lines in the error message try using `(?s)TEXT(.*)TEXT_IN_OTHER_LINE`.

If you have two or more different options for a text to match try using `(OPTION1|OPTION2)`.

A complete Python regular expressions explanation is out the scope of this manual. For a complete reference consult the [Python manual](https://docs.python.org/3/library/re.html).

**Important note**: this will create a file named *kiplot_errors.filter* in the output directory.

### The *outputs* section

Expand Down

0 comments on commit 157e23c

Please sign in to comment.