Parsing dissect patterns

In order to parse a pattern using dissec, you can use Pattern.parse() with the string-encoded pattern:

from __future__ import annotations

from dissec.patterns import Pattern


pattern = Pattern.parse("%{fst} - %{snd}")