microbiomedata / mixs-6-2-release-candidate

Proposed, Harmonized MIxS 6.2
https://github.com/GenomicsStandardsConsortium/mixs6.2_release_candidate
MIT License
5 stars 0 forks source link

make sure I understand `structured_pattern`'s `interpolated` and `partial_match` options #149

Closed turbomam closed 1 year ago

turbomam commented 1 year ago

see also

turbomam commented 1 year ago

Assertions like this are working well

    structured_pattern:
      syntax: ^{scientific_float}( *- *{scientific_float})? *{text}$
      interpolated: true
      partial_match: true

as long as the syntax contains the ^ and $ anchors. Anchors should not be included in the settings, like scientific_float: "[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"