[ansible-project] Re: Extracting a substring with regex_replace fails

2018-02-16 Thread jean-christophe manciot
You made it, bravo! However, this solution is not better than the regex search, because the whole point of using the xml module was to make it resilient to change. As soon as the URI {http://docs.oasis-open.org/ns/xri/xrd-1.0

Re: [ansible-project] Re: Extracting a substring with regex_replace fails

2018-02-15 Thread 'Felix Fontein' via Ansible Project
Hi, > I have no XML skills. I nevertheless took a look at the ansible xml > module, and it's obscure to me. > I think you're right though: it'd be better to read XML appropriately > with that module rather than use some regex filter which can be > easily defeated if the input changes in the future

[ansible-project] Re: Extracting a substring with regex_replace fails

2018-02-15 Thread jean-christophe manciot
@Kai Stian Olstad Thanks for your answer: yes, it works. @Felix Fontain I have no XML skills. I nevertheless took a look at the ansible xml module, and it's obscure to me. I think you're right though: it'd be better to read XML appropriately with that module rather than use some regex filter whi

[ansible-project] Re: Extracting a substring with regex_replace fails

2018-02-14 Thread jean-christophe manciot
> > > I have the same difficulty with: ansible 2.4.3.0 (detached HEAD 8a7f9beab7) last updated 2018/02/14 16:11:16 (GMT +200) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from i