Re: [ansible-project] regexp multiline

2017-11-07 Thread Dick Visser
There are currently only two flags available for use in regular expression filters in ansible, which appear to be 'ignorecase' and 'multiline': https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/core.py You're not entirely bound by these restrictions, because it's possible t

[ansible-project] regexp multiline

2017-11-06 Thread John Harmon
I can muddle through regexp on a regex tester, but when I import it to ansible it bombs. Is there a way to set flags, such as multiline under ansible? Or am I writing this completely wrong? Basically I am trying to fine this line as long as it isn't commented out: ^(?!#).*soft.*nofile.* Sam