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 '/?(.*)'
Can anyone please help me to explain this code:
- set_fact:
regex: "{{ '/opt/conf/path.txt' | regex_search('/?(.*)', '\\1') }}'