2 Replies Latest reply on Feb 9, 2019 4:36 AM by Danny Fleer

    Decode YAML

    Danny Fleer
      Share This:

      Hi experts,


      I'm interested if anyone of you has written a Pattern yet that makes use of data in YAML format.

      Unfortunately there is no decode/encode function to parse YAML, so I had to write some really ugly regular expressions to extract lists (e. g. (?m)^\s*tags:\r?\n((?:^#?\s+-\s+'[^']+'\r?\n?)+) ). Handling commented lines is a nightmare with this approach.


      Maybe it would be possible to have something similar as json.decode/json.encode, yaml.decode for example? :-)

      Let me know your experience with TPL and YAML.


      Kind regards