On 13. okt. 2016 14:04, Alan Harkleroad wrote:
Yes the hash starts with a $ and includes / as well. I dont follow what you
mean by escaping them.


Escaping is also documented here
https://docs.python.org/2/library/re.html#regular-expression-syntax

But it's a back slash (\) in front of a regexp special character so you can match on them.


Here is an example hash. So how would I have it read that as one character
string and swap it with the new hash

 $1$adjkielw$B./Hu9VCs96Zxc3mkVQ35.

Here you should escape $ and . like so.

\$1\$adjkielw\$B\./Hu9VCs96Zxc3mkVQ35\.


--
Kai Stian Olstad

--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/75390695-2688-c50b-948a-04fe93e731d4%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to