intentionet / netconan

netconan - a Network Configuration Anonymizer
Apache License 2.0
145 stars 12 forks source link

Use `re` in place of `regex` #132

Closed sfraint closed 4 years ago

sfraint commented 4 years ago

Use Python built-in re in place of regex in several places. This mostly involves replacing variable-length lookbehinds (not supported by re) with combinations of fixed-length lookbehinds.

Sensitive line anonymization (i.e. password regexes) will require more/alternative work due to extensive use of non-trivial variable-length lookbehinds.


This change is Reviewable