Hello,

I would like to replace the following line:
jstl.jar,taglibs-standard-spec-*.jar*,\*
with:
jstl.jar,taglibs-standard-spec-*.jar,icu4j-2.6.1.jar,\

I tried to double the backslash without any success, the issue occurs only 
on the regexp backslash:

For example, when doing this:
- name: catalina.properties jstl
  lineinfile:
    dest: /{{ tomcatdir }}/conf/catalina.properties
    regexp: "^jstl.jar,taglibs-standard-spec-*.jar*,.**"
    line: "jstl.jar,taglibs-standard-spec-*.jar,icu4j-2.6.1.jar,\\"

I have no error but an extra line as it does not recognize the line to 
replace, I thought '.' was meaning any character and '*' as many as we want.
When using this one:
    regexp: "^jstl.jar,taglibs-standard-spec-*.jar*,\\*"
    line: "jstl.jar,taglibs-standard-spec-*.jar,icu4j-2.6.1.jar,\\"

I have a syntax error.

Can you help me about using the backslash in the regexp parameter, without 
being a special character ?

Regards

-- 
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 it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/edb9fc0b-97b7-419f-83f7-bceed80e4a3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to