-2

Can anyone please help me to explain this code:

- set_fact:
    regex: "{{ '/opt/conf/path.txt' | regex_search('/?(.*)', '\\1') }}'
  • What "\\1" means
  • What is the function of each special letter in '/?(.*)'
  • Does this answer your question? [Learning Regular Expressions](https://stackoverflow.com/questions/4736/learning-regular-expressions) – U880D May 31 '22 at 05:24

0 Answers0