sholsapp sholsapp - 1 year ago 189
YAML Question

Uninterpreted strings in YAML

Is there a way to have uninterpreted strings within a YAML file? My goal is to have regular expressions that contain certain escape sequences like

. Currently, Python's YAML complains:
found unknown escape character 'w'

I know I could escape them, but this is going to obfuscate the actual regular expression. Any way around this?

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download